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
Jon Leighton 93c1f11c0a Support configuration on ActiveRecord::Model.
The problem: We need to be able to specify configuration in a way that
can be inherited to models that include ActiveRecord::Model. So it is
no longer sufficient to put 'top level' config on ActiveRecord::Base,
but we do want configuration specified on ActiveRecord::Base and
descendants to continue to work.

So we need something like class_attribute that can be defined on a
module but that is inherited when ActiveRecord::Model is included.

The solution: added ActiveModel::Configuration module which provides a
config_attribute macro. It's a bit specific hence I am not putting this
in Active Support or making it a 'public API' at present.
2011-12-28 18:27:41 +00:00
..
locale added :other_than => :!= option to numericality validator 2011-12-21 10:54:44 +01:00
mass_assignment_security MassAssignmentProtection: consider 'id' insensetive in StrictSanitizer 2011-08-13 16:22:26 -07:00
serializers Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
validations don't call an extra method if options[:tokenizer] is not present 2011-12-24 23:40:09 +03:00
attribute_methods.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
callbacks.rb Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every time a before callback halts. 2011-11-30 09:53:09 +01:00
configuration.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
conversion.rb Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar. 2011-08-13 16:22:26 -07:00
dirty.rb use any? instead of !empty? 2011-11-14 16:56:05 +01:00
errors.rb Fixed bug when error message is an empty string. 2011-12-16 17:17:14 -02:00
lint.rb Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar. 2011-08-13 16:22:26 -07:00
mass_assignment_security.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
naming.rb Improve cache on route_key lookup. 2011-12-08 19:53:16 +01:00
observer_array.rb Remove extra white spaces on ActiveModel docs. 2011-05-23 20:39:10 -03:00
observing.rb replaced remove and define method calls to :redefine 2011-11-07 16:22:30 +05:30
railtie.rb
secure_password.rb fix a typo and slightly reword has_secure_password comment 2011-10-17 19:14:29 +05:30
serialization.rb Revert "Implement ArraySerializer and move old serialization API to a new namespace." 2011-11-30 18:48:17 +01:00
test_case.rb Remove dead code from AMo. 2011-12-20 18:38:20 +01:00
translation.rb Namespaced attribute lookup now works as 'model/association.attribute'. 2011-12-05 15:39:41 +01:00
validations.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
validator.rb correct documentation on initialize method to accept a single parameter 2011-10-26 09:31:37 -04:00
version.rb rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00