Displaying 1 result from an estimated 1 matches for "create_network_ipaddress".
Did you mean:
create_network_ipaddresses
2006 Mar 30
0
Specify callbacks before associations
...ecify the callbacks before specifying the associations.
Otherwise, you might trigger the loading of a child before the parent
has registered the callbacks and they won?t be inherited."
Does this mean a model should be defined as:
class NetworkSegment < ActiveRecord::Base
after_create :create_network_ipaddresses
after_update :update_network_ipaddresses
has_many :network_ipaddresses, :order => octet4
#...
end
or
class NetworkSegment < ActiveRecord::Base
has_many :network_ipaddresses, :order => octet4
after_create :create_network_ipaddresses
after_update :update_network_ipaddresse...