class ContextualCallbacksDeveloper
Public Instance Methods
after_validation_on_create_and_update()
click to toggle source
# File activerecord/test/cases/callbacks_test.rb, line 123 def after_validation_on_create_and_update history << "after_validation_on_#{validation_context}".to_sym end
before_validation_on_create_and_update()
click to toggle source
# File activerecord/test/cases/callbacks_test.rb, line 119 def before_validation_on_create_and_update history << "before_validation_on_#{validation_context}".to_sym end
history()
click to toggle source
# File activerecord/test/cases/callbacks_test.rb, line 127 def history @history ||= [] end