Module: HasDelegates::ClassMethods

Defined in:
lib/has_delegates.rb

Instance Method Summary collapse

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, options = {})
  delegate_to(:belongs_to, delegate_id, options)
end

#has_one_delegate(delegate_id, options = {}) ⇒ Object



12
13
14
# File 'lib/has_delegates.rb', line 12

def has_one_delegate(delegate_id, options = {})
  delegate_to(:has_one, delegate_id, options)
end