Skip to content

Commit

Permalink
[#1016] attributes_protected_by_default is now a private method
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Jul 12, 2012
1 parent c2e6624 commit dde97fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/model/permissions.rb
Expand Up @@ -257,7 +257,7 @@ def editable_by?(user, attribute=nil)
def attribute_protected?(attribute)
attribute = attribute.to_s

return true if self.class.attributes_protected_by_default.include? attribute
return true if self.class.send(:attributes_protected_by_default).include? attribute

if !self.class.accessible_attributes.empty?
return true if !self.class.accessible_attributes.include?(attribute)
Expand Down

0 comments on commit dde97fa

Please sign in to comment.