Module: HasDelegates::ClassMethods
- Defined in:
- lib/has_delegates.rb
Instance Method Summary collapse
- #belongs_to_delegate(delegate_id, options = {}) ⇒ Object
- #has_one_delegate(delegate_id, options = {}) ⇒ Object
Instance Method Details
#belongs_to_delegate(delegate_id, options = {}) ⇒ Object
8 9 10 |
# File 'lib/has_delegates.rb', line 8 def belongs_to_delegate(delegate_id, = {}) delegate_to(:belongs_to, delegate_id, ) end |
#has_one_delegate(delegate_id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/has_delegates.rb', line 12 def has_one_delegate(delegate_id, = {}) delegate_to(:has_one, delegate_id, ) end |