Module: Resourced::ActiveRecord::ClassMethods
- Defined in:
- lib/resourced/active_record.rb
Instance Method Summary collapse
Instance Method Details
#key(key_name = nil) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/resourced/active_record.rb', line 15 def key(key_name=nil) super key_name = key_name.to_sym finders do finder key_name do |v| chain.where(key_name => v) end end end |