Method: Enki::Comment.protected_attribute?

Defined in:
app/models/enki/comment.rb

.protected_attribute?(attribute) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'app/models/enki/comment.rb', line 52

def protected_attribute?(attribute)
  [:author, :body].include?(attribute.to_sym)
end