Permalink
Browse files

Fix deprecation warnings by changing update_attribute to update_column.

  • Loading branch information...
1 parent 261a360 commit 46877fbc5335fc60b96b218cbfd787387bf7d94e @ugisozols ugisozols committed Jul 31, 2012
@@ -41,11 +41,11 @@ def avatar_url(options = {})
end
def approve!
- self.update_attribute(:state, 'approved')
+ self.update_column(:state, 'approved')
end
def reject!
- self.update_attribute(:state, 'rejected')
+ self.update_column(:state, 'rejected')
end
def rejected?

0 comments on commit 46877fb

Please sign in to comment.