1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases
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
..
mass_assignment_security Changed the require path for logger 2011-12-21 19:42:44 +05:30
serializers Revert "Implement ArraySerializer and move old serialization API to a new namespace." 2011-11-30 18:48:17 +01:00
validations added :other_than => :!= option to numericality validator 2011-12-21 10:54:44 +01:00
attribute_methods_test.rb remove deprecated define_attr_method from ActiveModel::AttributeMethods 2011-12-24 21:26:15 +03:00
callbacks_test.rb Use run_callbacks; the generated _run_<name>_callbacks method is not a public interface. 2011-01-31 19:45:53 -02:00
configuration_test.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
conversion_test.rb Rename new method to_path to to_partial_path to avoid conflicts with File#to_path and similar. 2011-08-01 11:42:00 +02:00
dirty_test.rb changing an attribute multiple times retains the correct original value 2011-06-28 22:18:24 -07:00
errors_test.rb New #added? method on ActiveModel::Errors 2011-10-19 21:29:20 +02:00
helper.rb No more need rubygems here. 2011-05-22 02:02:56 +05:30
lint_test.rb Require persisted? in ActiveModel::Lint and remove new_record? and destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not. 2010-02-21 11:12:14 +01:00
mass_assignment_security_test.rb Allow to specify mass-assignment roles as array 2011-06-23 12:56:39 +06:00
naming_test.rb Improve cache on route_key lookup. 2011-12-08 19:53:16 +01:00
observer_array_test.rb Add additional tests for AM::ObserverArray that I had missed yesterday. 2011-04-28 08:32:22 -07:00
observing_test.rb Allow ActiveRecord observers to be disabled. 2011-08-12 20:48:44 -07:00
secure_password_test.rb use variables from test setup 2011-10-17 19:15:24 +05:30
serialization_test.rb Revert "Implement ArraySerializer and move old serialization API to a new namespace." 2011-11-30 18:48:17 +01:00
translation_test.rb Namespaced attribute lookup now works as 'model/association.attribute'. 2011-12-05 15:39:41 +01:00
validations_test.rb Implemented strict validation concept 2011-08-17 17:26:00 +03:00