- 25 1月, 2012 1 次提交
-
-
由 prasath 提交于
-
- 17 1月, 2012 3 次提交
-
-
由 dreamfall 提交于
-
由 Paweł Kondzior 提交于
Since ActiveModel::Errors instance keeps all error messages as hash we should duplicate this object as well. Previously ActiveModel::Errors was a subclass of ActiveSupport::OrderedHash, which results in different behavior on `dup`, this may result in regression for people relying on it.
-
由 Piotr Sarnacki 提交于
-
- 16 1月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 15 1月, 2012 1 次提交
-
-
由 Piotr Sarnacki 提交于
Without that patch when using ActiveModel::AttributeMethods in a class that does not respond to `attributes` method, stack level too deep error will be raised on non existing method. While documentation is clear that you need to define `attributes` method in order to use AttributeMethods module, `stack level too deep` is rather obscure and hard to debug, therefore we should try to not break `method_missing` if someone forgets about defining `attributes`.
-
- 07 1月, 2012 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Rafael Mendonça França 提交于
-
- 29 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
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.
-
- 25 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 21 12月, 2011 4 次提交
-
-
由 Karunakar (Ruby) 提交于
-
由 Karunakar (Ruby) 提交于
-
由 Jakub Kuźma 提交于
-
由 José Valim 提交于
-
- 17 12月, 2011 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Antonio Roberto 提交于
-
- 09 12月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 06 12月, 2011 1 次提交
-
-
由 Marc-Andre Lafortune 提交于
-
- 05 12月, 2011 2 次提交
-
-
由 José Valim 提交于
-
由 Tsutomu Kuroda 提交于
Nested I18n namespace lookup under activerecord.models is deprecated now (c19bd4f8). But when a model uses accepts_nested_attributes_for, its Errors object can have an attribute name with "addresses.street" style. In this case, the dots should be substituted with slashes so that we can provide the translation under the "activemodel.attributes.person.addresses/street" key.
-
- 01 12月, 2011 1 次提交
-
-
由 José Valim 提交于
This reverts commit 8896b4fd. Conflicts: activemodel/lib/active_model.rb activemodel/lib/active_model/serializable.rb activemodel/lib/active_model/serializer.rb activemodel/test/cases/serializer_test.rb
-
- 30 11月, 2011 2 次提交
-
-
由 lest 提交于
-
由 Jon Leighton 提交于
This only existed to support methods like `set_table_name` in Active Record, which are themselves being deprecated.
-
- 26 11月, 2011 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 José Valim 提交于
-
- 24 11月, 2011 5 次提交
-
-
由 Jakub Kuźma 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
The following constants were renamed: ActiveModel::Serialization => ActiveModel::Serializable ActiveModel::Serializers::JSON => ActiveModel::Serializable::JSON ActiveModel::Serializers::Xml => ActiveModel::Serializable::XML The main motivation for such a change is that `ActiveModel::Serializers::JSON` was not actually a serializer, but a module that when included allows the target to be serializable to JSON. With such changes, we were able to clean up the namespace to add true serializers as the ArraySerializer.
-
由 José Valim 提交于
-
- 19 11月, 2011 1 次提交
-
-
由 Prem Sichanugrist 提交于
-
- 06 11月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 6aaae3de, reversing changes made to fdbc4e5f. Reason: build failure.
-
- 20 10月, 2011 1 次提交
-
-
由 Martin Svalin 提交于
The #added? method makes it possible to check if a specific error has been added, using the same parameters as for #add.
-
- 17 10月, 2011 2 次提交
-
-
由 Vijay Dev 提交于
-
由 Martin Svalin 提交于
-
- 16 10月, 2011 5 次提交
-
-
由 Jose and Yehuda 提交于
-
由 Jose and Yehuda 提交于
-
由 Jose and Yehuda 提交于
-
由 Jose and Yehuda 提交于
-
由 Jose and Yehuda 提交于
-