aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/model_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* applies new string literal convention in activemodel/testXavier Noria2016-08-061-7/+7
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Follow-up to #10776Robin Dupret2015-02-261-1/+1
| | | | | | | | | | The name `ActiveModel::AttributeAssignment::UnknownAttributeError` is too implementation specific so let's move the constant directly under the ActiveModel namespace. Also since this constant used to be under the ActiveRecord namespace, to make the upgrade path easier, let's avoid raising the former constant when we deal with this error on the Active Record side.
* use attribute assignment module logic during active model initializationEugene Gilburg2015-01-231-1/+3
|
* ActiveModel::Model inclusion chain backward compatibilityFred Wu2013-06-201-5/+15
|
* Fixes AciveModel::Model with no ancestors, fixes #11004Fred Wu2013-06-191-2/+23
| | | | Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
* Fixed ActiveModel::Model's inclusion chainFred Wu2013-06-191-0/+12
|
* Convert ActiveModel to 1.9 hash syntax.Patrick Robertson2013-05-011-2/+2
| | | | | I also attempted to fix other styleguide violations such as { a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ).
* Adding tests for ActiveModel::ModelAttila Domokos2013-01-121-0/+6
| | | | | | * Verifying persisted? is false when Model initialized * Passing nil to Model should not blow up * Changing test name to the one suggested in pull request comment
* Add docs with usage examples for ActiveModel::ModelCarlos Antonio da Silva2012-03-031-0/+7
| | | | | Also add test to ensure basic model does not explode when initialized with nil.
* Add ActiveModel::Model, a mixin to make Ruby objects to work with AP inmediatlyGuillermo Iguaran2012-03-021-0/+19