aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-111-1/+1
|\
| * Update ConfirmationValidator docs, correct when the validator runsAlan Harper2012-01-051-1/+1
| |
* | removed unnessary require active_support/core_ext/array_wrapKarunakar (Ruby)2012-01-061-1/+0
| |
* | Revert "Revert "More 1.9 way""Santiago Pastorino2012-01-061-4/+2
| | | | | | | | | | Fixed failing tests This reverts commit 8350ce97f2065eed9638c595d3938a573d6fa343.
* | Remove Array.wrap call in ActiveModelRafael Mendonça França2012-01-067-17/+12
| |
* | Revert "More 1.9 way"Aaron Patterson2012-01-051-2/+4
| | | | | | | | This reverts commit 675094b2757cf90399dadca4489b1036810ae570.
* | More 1.9 waySantiago Pastorino2012-01-051-4/+2
| |
* | use logger.warn for warningsAaron Patterson2012-01-041-1/+1
| |
* | push exception message formatting to the exception classAaron Patterson2012-01-041-1/+4
| |
* | push target down to the classes that care about itAaron Patterson2012-01-041-4/+5
| |
* | just implement the delegate methodAaron Patterson2012-01-041-4/+4
| |
* | Array.wrap no longer neededAaron Patterson2012-01-041-3/+2
|/
* Fix grammatical error in ↵Steve Richert2012-01-021-1/+1
| | | | ActiveModel::MassAssignmentSecurity::PermissionSet#deny? NotImplementedError message
* Merge pull request #4248 from andrew/2012Vijay Dev2011-12-311-1/+1
|\ | | | | Updated copyright notices for 2012
| * Updated copyright notices for 2012Andrew Nesbitt2011-12-311-1/+1
| |
* | Support configuration on ActiveRecord::Model.Jon Leighton2011-12-286-14/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #4172 from nashby/refactor-tokenizerJosé Valim2011-12-241-4/+2
|\ \ | | | | | | don't call an extra method if options[:tokenizer] is not present
| * | don't call an extra method if options[:tokenizer] is not presentVasiliy Ermolovich2011-12-241-4/+2
| | |
* | | remove deprecated define_attr_method from ActiveModel::AttributeMethodsSergey Nartimov2011-12-241-41/+0
|/ /
* | use Range#min and Range#max to reduce extra statementVasiliy Ermolovich2011-12-241-2/+1
| |
* | deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-2/+0
| |
* | AM::MAS.attr_protected: rework usage example.Bogdan Gusiev2011-12-231-9/+9
| |
* | Fixed AM::MasAsSec.attr_protected usage example. Bogdan Gusiev2011-12-221-15/+16
| | | | | | | | | | | | | | | | Problems with current example: * DOESN'T WORK ** attr_protected :last_login, :as => :admin # doesn't make it accessible for admin * Uses ActiveSupport Fixnum extension
* | Fix AM::MassAssignementSecurity docBogdan Gusiev2011-12-221-1/+1
| |
* | added :other_than => :!= option to numericality validatorJakub Kuźma2011-12-212-2/+4
| |
* | Remove dead code from AMo.José Valim2011-12-201-12/+0
| |
* | rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+David Heinemeier Hansson2011-12-201-3/+3
| |
* | Party like its R-C-UNO!David Heinemeier Hansson2011-12-191-1/+1
| |
* | Fixed bug when error message is an empty string.Antonio Roberto2011-12-161-1/+2
| |
* | Improve cache on route_key lookup.José Valim2011-12-081-2/+23
| |
* | Ensure length validator also works on 1.8.7.José Valim2011-12-061-6/+17
| |
* | Merge pull request #3872 from marcandre/i18n_keyJosé Valim2011-12-061-2/+2
|\ \ | | | | | | ActiveModel::Name#i18n_key: Fix doc and add tests
| * | ActiveModel::Name#i18n_key: Fix doc and add testsMarc-Andre Lafortune2011-12-051-2/+2
| | |
* | | Merge pull request #3873 from iangreenleaf/no_default_tokenizerJosé Valim2011-12-061-2/+1
|\ \ \ | |/ / |/| | Don't tokenize string when counting characters
| * | Don't tokenize string when counting charactersIan Young2011-12-041-2/+1
| | |
* | | Namespaced attribute lookup now works as 'model/association.attribute'.José Valim2011-12-051-6/+14
| | |
* | | Merge pull request #3859 from kuroda/human_attribute_nameJosé Valim2011-12-051-2/+6
|\ \ \ | |/ / |/| | Fix human_attribute_name to handle names with dots
| * | Fix human_attribute_name to handle names with dotsTsutomu Kuroda2011-12-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | Nested I18n namespace lookup under activerecord.models is deprecated now (c19bd4f). 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.
* | | Fix argument error message for length validationAlexey Vakhov2011-12-011-1/+1
| | |
* | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-11-302-4/+4
|\ \ \
| * | | Cosmetic fixes in AM validatations docsAlexey Vakhov2011-11-272-4/+4
| | | |
* | | | Revert "Implement ArraySerializer and move old serialization API to a new ↵José Valim2011-11-308-714/+419
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | namespace." This reverts commit 8896b4fdc8a543157cdf4dfc378607ebf6c10ab0. Conflicts: activemodel/lib/active_model.rb activemodel/lib/active_model/serializable.rb activemodel/lib/active_model/serializer.rb activemodel/test/cases/serializer_test.rb
* | | | Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every time ↵José Valim2011-11-301-1/+1
| | | | | | | | | | | | | | | | a before callback halts.
* | | | Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`Jon Leighton2011-11-291-37/+20
|/ / / | | | | | | | | | | | | This only existed to support methods like `set_table_name` in Active Record, which are themselves being deprecated.
* | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-11-261-1/+1
|\ \ \
| * | | Small docs fix in Active Model callbacks moduleAlexey Vakhov2011-11-191-1/+1
| | | |
* | | | Revert the serializers API as other alternatives are now also under discussionJosé Valim2011-11-252-14/+0
| | | |
* | | | Merge branch 'serializers'José Valim2011-11-258-419/+728
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements the ActiveModel::Serializer object. Includes code, tests, generators and guides. From José and Yehuda with love. Conflicts: railties/CHANGELOG.md
| * | | | Add docs to serializers. Update CHANGELOGs.José Valim2011-11-251-7/+71
| | | | |
| * | | | Rely solely on active_model_serializer and remove the fancy constant lookup.José Valim2011-11-232-43/+14
| | | | |