Module: Filemaker::Model::Relations::ClassMethods
- Defined in:
- lib/filemaker/model/relations.rb
Instance Method Summary collapse
- #belongs_to(name, options = {}) ⇒ Object
- #has_many(name, options = {}) ⇒ Object
- #has_portal(name, options = {}) ⇒ Object
Instance Method Details
#belongs_to(name, options = {}) ⇒ Object
20 21 22 |
# File 'lib/filemaker/model/relations.rb', line 20 def belongs_to(name, = {}) relate_single(Relations::BelongsTo, name, ) end |
#has_many(name, options = {}) ⇒ Object
16 17 18 |
# File 'lib/filemaker/model/relations.rb', line 16 def has_many(name, = {}) relate_collection(Relations::HasMany, name, ) end |
#has_portal(name, options = {}) ⇒ Object
24 25 26 |
# File 'lib/filemaker/model/relations.rb', line 24 def has_portal(name, = {}) relate_portal(Relations::HasPortal, name, ) end |