1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib/active_model
Godfrey Chan 4a19b3dea6 Pass through the prepend option to AS::Callback
I'm not sure what's the use case for this, but apparently it broke some apps.
Since it was not the intended result from #16210 I fixed it to not raise an
exception anymore. However, I didn't add documentation for it because I don't
know if this should be officially supported without knowing how it's meant to
be used.

In general, validations should be side-effect-free (other than adding to the
error message to `@errors`). Order-dependent validations seems like a bad idea.

Fixes #18002
2014-12-12 14:51:02 -08:00
..
locale Add singular and plural form for some validation messages 2014-05-02 18:32:11 +02:00
serializers Fixing documentation in JSON#from_json 2014-11-20 14:50:24 -06:00
validations Ensure numericality validations work with mutation 2014-12-01 05:31:44 -07:00
attribute_methods.rb Correctly handle multiple attribute method prefix/suffixes which match 2014-12-04 15:50:31 -07:00
callbacks.rb fix typo in in define_model_callbacks comment [ci skip] 2014-10-03 15:31:14 -06:00
conversion.rb [ci skip] correct docs for conversion 2014-06-11 23:29:23 +05:30
dirty.rb add brackets around attribute_name 2014-12-08 17:39:29 +01:00
errors.rb Add #key? to ActiveModel::Errors 2014-10-14 09:53:26 +01:00
forbidden_attributes_protection.rb Check attributes passed to create_with and where 2014-08-18 14:07:37 -03:00
gem_version.rb Start Rails 5 development 🎉 2014-11-28 15:00:06 -02:00
lint.rb Use #model_name on instances instead of classes 2014-06-24 17:20:24 -07:00
model.rb Use ActiveSupport::Concern instead of the traditinal way 2014-08-25 11:06:06 -07:00
naming.rb No need to check model_name anymore 2014-08-17 23:02:27 -03:00
railtie.rb Use BCrypt's MIN_COST in the test environment for speedier tests 2012-11-14 09:42:54 -06:00
secure_password.rb use allow_blank option instead 2014-09-14 00:19:33 +05:30
serialization.rb ✂️ and 💅 from d60c405 [ci skip] 2014-06-16 11:35:43 -07:00
test_case.rb Remove dead code from AMo. 2011-12-20 18:38:20 +01:00
translation.rb Convert ActiveModel to 1.9 hash syntax. 2013-05-01 18:01:46 -07:00
validations.rb Pass through the prepend option to AS::Callback 2014-12-12 14:51:02 -08:00
validator.rb Fix example code of EachValidator [ci skip] 2014-07-28 18:35:28 +08:00
version.rb Introduce Rails.gem_version 2014-03-05 12:37:38 -05:00