Module: TrustedAttributes::ClassMethods

Defined in:
lib/trusted_attributes.rb

Instance Method Summary collapse

Instance Method Details

#trust(*attributes) ⇒ Object



22
23
24
25
26
# File 'lib/trusted_attributes.rb', line 22

def trust(*attributes)
  before_filter do |controller|
    controller.accessible_attributes.concat(attributes)
  end
end