Skip to content

Commit

Permalink
Fix deprecation warnings by changing update_attribute to update_column.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jul 31, 2012
1 parent 261a360 commit 46877fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/refinery/blog/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
Empty file.

0 comments on commit 46877fb

Please sign in to comment.