Class: SofaBlog::Comment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/sofa_blog/comment.rb

Instance Method Summary collapse

Instance Method Details

#approve!Object

– Instance Methods —————————————————–



28
29
30
# File 'app/models/sofa_blog/comment.rb', line 28

def approve!
  update_attribute(:is_approved, true)
end

#disapprove!Object



32
33
34
# File 'app/models/sofa_blog/comment.rb', line 32

def disapprove!
  update_attribute(:is_approved, false)
end