Method: Fauxsql::DSL#manymany
- Defined in:
- lib/fauxsql/dsl.rb
#manymany(attribute_name, classes, options) ⇒ Object
DSL method to define a named Fauxsql manymany relationship
calling with ‘friends’ is like writing:
def friends
get_fauxsql_manymany(:friends, Other, :through => :friends)
end
101 102 103 104 105 |
# File 'lib/fauxsql/dsl.rb', line 101 def manymany(attribute_name, classes, ) define_method attribute_name do get_fauxsql_manymany(attribute_name, classes, ) end end |