Module: ActiveLayer::Attributes::ClassMethods

Defined in:
lib/active_layer/attributes.rb

Instance Method Summary collapse

Instance Method Details

#all_attributes_accessible!Object



27
28
29
# File 'lib/active_layer/attributes.rb', line 27

def all_attributes_accessible!
  self.accessible_attributes = nil
end

#attr_accessible(*attributes) ⇒ Object



23
24
25
# File 'lib/active_layer/attributes.rb', line 23

def attr_accessible(*attributes)
  self.accessible_attributes = Set.new(attributes.map(&:to_s)) + (accessible_attributes || [])
end