Skip to content

Commit

Permalink
Updated deleted_at to database directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandoalvarado committed Nov 14, 2019
1 parent c8d191f commit 85f351d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/tagging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def remove_unused_tags
end

def mark_as_deleted
self.update_attributes(deleted_at: Time.current)
self.update_columns(deleted_at: Time.current)
end

def has_deleted_at?
Expand Down

0 comments on commit 85f351d

Please sign in to comment.