here's my situation: I have two ActiveRecord models:
class SomeAction < ActiveRecord::Base
has_one :moderation
end
class Moderation < ActiveRecord::Base
belongs_to :some_action
end
I would like Moderation to update SomeAction's status attribute to "complete" when I save the moderation associated with it. I would like the moderation to NOT save if for some reason the update to SomeAction was unsuccessful. I know I should be doing this in the before_save callback, however returning false (after realizing that the SomeAction record was not updatable) will not ROLLBACK everything. Any ide