Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [ci skip] correct docs for conversion | Aditya Kapoor | 2014-06-11 | 1 | -5/+12 |
| | |||||
* | Pass strings to demodulize method | Carlos Antonio da Silva | 2014-02-26 | 1 | -1/+1 |
| | | | | | Goes along with fea1cdcff4d50d302d8e8532432c3ab107ff816d and 59ec4562a2e70df455b2e44a67c340fa5254e26e. | ||||
* | pass the class name to `tableize` | Aaron Patterson | 2014-02-26 | 1 | -1/+1 |
| | | | | We should not rely on to_s to return the name of the class | ||||
* | `#to_param` returns `nil` if `to_key` returns `nil`. Closes #11399. | Yves Senn | 2014-02-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | The documentation of `#to_key` (http://api.rubyonrails.org/classes/ActiveModel/Conversion.html#method-i-to_key) states that it returns `nil` if there are no key attributes. `to_param` needs to be aware of that fact and return `nil` as well. Previously it raised the following exception: ``` 1) Error: ConversionTest#test_to_param_returns_nil_if_to_key_is_nil: NoMethodError: undefined method `join' for nil:NilClass /Users/senny/Projects/rails/activemodel/lib/active_model/conversion.rb:65:in `to_param' /Users/senny/Projects/rails/activemodel/test/cases/conversion_test.rb:34:in `block in <class:ConversionTest>' ``` | ||||
* | Adding missing backslashes in active_model files so as to avoid unwanted ↵ | aditya-kapoor | 2013-12-27 | 1 | -1/+1 |
| | | | | links in rdoc [ci skip] | ||||
* | Spelling and Grammar checks | Akshay Vishnoi | 2013-12-12 | 1 | -1/+1 |
| | |||||
* | Revert "Merge pull request #13276 from aayushkhandelwal11/change_to_key" | Rafael Mendonça França | 2013-12-11 | 1 | -1/+2 |
| | | | | | | | This will call primary_key two times This reverts commit d0588a2e897d33c6c12e9fc5f8680328d37a26ca, reversing changes made to 87e1e86640fb8b5a260ff7c0044aaae58fff2bc4. | ||||
* | removing multiple check conditions to single check condition | Aayush khandelwal | 2013-12-11 | 1 | -2/+1 |
| | |||||
* | Small Typo | Lebin Sebastian F | 2013-03-04 | 1 | -1/+1 |
| | |||||
* | cleanup, removed dispensable `require` statements from `ActiveModel` | Yves Senn | 2012-11-25 | 1 | -2/+0 |
| | |||||
* | minor edits in AM documentation [ci skip] | Francesco Rodriguez | 2012-10-21 | 1 | -1/+1 |
| | |||||
* | load active_support/concern in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | update ActiveModel::Conversion documentation [ci skip] | Francesco Rodriguez | 2012-07-04 | 1 | -3/+15 |
| | |||||
* | update ActiveModel::Errors documentation and minor fixes [ci skip] | Francesco Rodriguez | 2012-06-22 | 1 | -1/+1 |
| | |||||
* | update ActiveModel::Conversion documentation [ci skip] | Francesco Rodriguez | 2012-06-22 | 1 | -8/+21 |
| | |||||
* | Fix comments about to_partial_path | Grant Hutchins | 2012-03-10 | 1 | -2/+2 |
| | |||||
* | Revert "Revert "More 1.9 way"" | Santiago Pastorino | 2012-01-06 | 1 | -4/+2 |
| | | | | | Fixed failing tests This reverts commit 8350ce97f2065eed9638c595d3938a573d6fa343. | ||||
* | Revert "More 1.9 way" | Aaron Patterson | 2012-01-05 | 1 | -2/+4 |
| | | | | This reverts commit 675094b2757cf90399dadca4489b1036810ae570. | ||||
* | More 1.9 way | Santiago Pastorino | 2012-01-05 | 1 | -4/+2 |
| | |||||
* | Rename new method to_path to to_partial_path to avoid conflicts with ↵ | José Valim | 2011-08-01 | 1 | -5/+5 |
| | | | | File#to_path and similar. | ||||
* | Rename class method to_path to _to_path and make it explicit that it is an ↵ | José Valim | 2011-07-28 | 1 | -3/+5 |
| | | | | internal method. | ||||
* | Let ActiveModel instances define partial paths. | Grant Hutchins & Peter Jaros | 2011-07-25 | 1 | -2/+24 |
| | | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances. | ||||
* | Improve doc styles for ActiveModel::Conversion | Sebastian Martinez | 2011-05-04 | 1 | -4/+4 |
| | |||||
* | Remove Example headers. Code just flows with the text. 6ce844a3 | Paco Guzman | 2011-03-06 | 1 | -2/+0 |
| | |||||
* | to_key should return all exists keys (if any exists), regardless if the ↵ | José Valim | 2010-08-15 | 1 | -3/+6 |
| | | | | object is persisted or not. If you need it to reflect persistance, you should use to_param. | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -6/+6 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -3/+3 |
| | |||||
* | Minor changes to callbacks and conversion API docs. | Rizwan Reza | 2010-06-14 | 1 | -7/+11 |
| | |||||
* | Fix spelling error in ActiveModel::Conversion docs. [#4826 state:resolved] | Pavel Gorbokon | 2010-06-11 | 1 | -1/+1 |
| | |||||
* | Require persisted? in ActiveModel::Lint and remove new_record? and ↵ | José Valim | 2010-02-21 | 1 | -6/+6 |
| | | | | 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. | ||||
* | Add to_key and to_param methods to ActiveModel::Conversion. | José Valim | 2010-02-21 | 1 | -10/+35 |
| | |||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -1/+12 |
| | |||||
* | AMo conversion helper | Joshua Peek | 2009-07-21 | 1 | -0/+8 |