Skip to content

Commit

Permalink
Merge pull request #1661 from tvdeyen/touch-contents-in-db
Browse files Browse the repository at this point in the history
Touch contents updated_at column in pure SQL
  • Loading branch information
tvdeyen authored Nov 1, 2019
2 parents a1c2afa + a76e6ae commit cc21e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/alchemy/content_touching.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.included(base)
#
def touch_contents
return unless respond_to?(:contents)
contents.each(&:touch)
contents.update_all(updated_at: Time.current)
end
end
end

0 comments on commit cc21e84

Please sign in to comment.