Module: Dirty::Attributes::ClassMethods

Defined in:
lib/dirty/attributes.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



15
16
17
# File 'lib/dirty/attributes.rb', line 15

def attributes
  @attrs
end

#attrs(*names) ⇒ Object



11
12
13
# File 'lib/dirty/attributes.rb', line 11

def attrs(*names)
  @attrs = names.collect(&:to_s)
end