aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-07-31 07:59:34 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2012-07-31 07:59:34 +0300
commit46877fbc5335fc60b96b218cbfd787387bf7d94e (patch)
treeb4bc136bbb899e1cb98d681ac92d209d7c791632 /app
parent261a3601b9de03a9622d9b0f406b310b3a804a6e (diff)
downloadrefinerycms-blog-46877fbc5335fc60b96b218cbfd787387bf7d94e.tar.gz
refinerycms-blog-46877fbc5335fc60b96b218cbfd787387bf7d94e.tar.bz2
refinerycms-blog-46877fbc5335fc60b96b218cbfd787387bf7d94e.zip
Fix deprecation warnings by changing update_attribute to update_column.
Diffstat (limited to 'app')
-rw-r--r--app/models/refinery/blog/comment.rb4
-rw-r--r--app/views/refinery/blog/admin/comments/approve.html.erb0
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/refinery/blog/comment.rb b/app/models/refinery/blog/comment.rb
index 3675e46..b57e16f 100644
--- a/app/models/refinery/blog/comment.rb
+++ b/app/models/refinery/blog/comment.rb
@@ -41,11 +41,11 @@ module Refinery
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?
diff --git a/app/views/refinery/blog/admin/comments/approve.html.erb b/app/views/refinery/blog/admin/comments/approve.html.erb
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/views/refinery/blog/admin/comments/approve.html.erb