Module: Pivotal::Associations::ClassMethods
- Defined in:
- lib/pivotal/associations.rb
Instance Method Summary collapse
Instance Method Details
#has_collection(name, options = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/pivotal/associations.rb', line 9 def has_collection(name, = {}) define_method name do Pivotal::Collection.new resource[name], [:of] end end |