search for: save_without_activation_handling

Displaying 1 result from an estimated 1 matches for "save_without_activation_handling".

2007 Jul 23
2
Acts_As_Ferret: disable_ferret and Callbacks
...iveRecord::Base has_one :associated_model # This model will fill in some fields upon it''s own validation def save_with_activation_handling! if active? # This part works self.activated_at = Time.now else disable_ferret :once self.activated_at = nil end save_without_activation_handling! end alias_method_chain :save!, :activation_handling end Any ideas? Thank you, James Herdman -- Posted via http://www.ruby-forum.com/.