Class: ActiveRecord::Associations::Association

Inherits:
Object
  • Object
show all
Defined in:
lib/tagtical/compatibility/ar_hacks.rb

Instance Method Summary collapse

Instance Method Details

#target=(target) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/tagtical/compatibility/ar_hacks.rb', line 5

def target=(target)
  if target.respond_to?(:on_set_target)
    target = target.on_set_target(owner)
  end
  @target = target
  loaded!
end