Module: HasManyWithSet
- Defined in:
- lib/has-many-with-set.rb,
lib/has-many-with-set/queries.rb,
lib/has-many-with-set/version.rb,
lib/has-many-with-set/accessors.rb,
lib/has-many-with-set/callbacks.rb,
lib/has-many-with-set/relationships.rb,
lib/has-many-with-set/has-many-with-set.rb,
lib/generators/has_many_with_set/migration_generator.rb
Defined Under Namespace
Modules: Accessors, Callbacks, Queries, Relationships Classes: MigrationGenerator
Constant Summary collapse
- VERSION =
"2.0.2"
Instance Method Summary collapse
-
#has_many_with_set(child) ⇒ Object
This is the magic entry point method that adds set relationships to a model.
Instance Method Details
#has_many_with_set(child) ⇒ Object
This is the magic entry point method that adds set relationships to a model.
3 4 5 |
# File 'lib/has-many-with-set/has-many-with-set.rb', line 3 def has_many_with_set(child) build_set_relationship self.to_s, child.to_s.classify end |