Saturday, 15 March 2014

ruby on rails - What happens between after_validation and before_save? -



ruby on rails - What happens between after_validation and before_save? -

the after_validation callback triggered before before_save. happens between callbacks, if anything? why 1 take 1 on another?

there after_validation_on_update or after_validation_on_create depending if item new record.

and max states, chain interrupted before reaches before_save callback if object not valid, if need occur regardless of validity of object before_save not place it.

for reference: http://apidock.com/rails/activerecord/callbacks/after_validation_on_create

ruby-on-rails

No comments:

Post a Comment