Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add missing AS core extension dependency | Wojciech Wnętrzak | 2015-01-21 | 1 | -0/+1 |
| | |||||
* | removing unecessary parameter in private method | George Millo | 2015-01-06 | 1 | -2/+2 |
| | | | | '_singularize' only ever gets called with one argument | ||||
* | Use Active Model, not ActiveModel in plain English | claudiob | 2015-01-02 | 1 | -1/+1 |
| | | | | | | | Also prevents the word "Model" from linking to the documentation of ActiveModel::Model because that's not intended. [ci skip] | ||||
* | No need to check model_name anymore | Rafael Mendonça França | 2014-08-17 | 1 | -4/+2 |
| | |||||
* | Merge pull request #15889 from carnesmedia/model-name | Rafael Mendonça França | 2014-08-17 | 1 | -1/+1 |
|\ | | | | | | | Use #model_name on instances instead of classes | ||||
| * | Use #model_name on instances instead of classes | Amiel Martin | 2014-06-24 | 1 | -1/+1 |
| | | | | | | | | | | | | This allows rails code to be more confdent when asking for a model name, instead of having to ask for the class. Rails core discussion here: https://groups.google.com/forum/#!topic/rubyonrails-core/ThSaXw9y1F8 | ||||
* | | Call public methods rather than class_eval'ing | Carlos Antonio da Silva | 2014-08-05 | 1 | -4/+2 |
| | | |||||
* | | Silence warning emitted in tests | Sean Griffin | 2014-07-01 | 1 | -0/+1 |
|/ | | | | | The instance method `model_name` was being defined multiple times, causing a redefinition warning. | ||||
* | Delegate #model_name method to self.class | Yuki Nishijima | 2014-06-22 | 1 | -0/+6 |
| | |||||
* | [ci skip] Include ActiveModel::Model in a class instead of inheriting | Akshay Vishnoi | 2014-05-30 | 1 | -2/+3 |
| | |||||
* | Name#model_name doesn't return a String object | ShunsukeAida | 2014-05-30 | 1 | -1/+1 |
| | |||||
* | Change syntax format for example returned values | Prem Sichanugrist | 2013-11-11 | 1 | -6/+6 |
| | | | | | | | | | According to our guideline, we leave 1 space between `#` and `=>`, so we want `# =>` instead of `#=>`. Thanks to @fxn for the suggestion. [ci skip] | ||||
* | Merge pull request #12686 from kryzhovnik/master | Carlos Antonio da Silva | 2013-11-02 | 1 | -6/+6 |
|\ | | | | | | | | | | | | | Minor doc fix of ActiveModel::Naming. [ci skip] Conflicts: activemodel/lib/active_model/naming.rb | ||||
| * | Minor doc fix of ActiveModel::Naming. | Andrey Samsonov | 2013-10-29 | 1 | -6/+6 |
| | | | | | | | | | | - qoute example line's result when it kind of String - right ("singular_route_key") method in example | ||||
* | | Revert "Merge pull request #11053 from yangchenyun/mine" | José Valim | 2013-06-22 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | Those two files are required by active_support/rails.rb loaded in active_model.rb It is common to require common dependencies on the root files to avoid boilerplate in each file. This reverts commit 763635e30f17800ebc0a8ae98d780edc8ebfb4e5, reversing changes made to 4f46ef36aaef217834f3f96d3689d32f6a6761ea. | ||||
* | | add explicit AS dependencies for ActiveModel::Naming | Steven Yang | 2013-06-22 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | There are two missing ActiveSupport dependencies to use ActiveModel::Name class or ActiveModel::Naming module independently. Missing dependencies for Module#delegate defined in `active_support/core_ext/module/delegation`, used at [L148](https://github.com/rails/rails/blob/master/activemodel/lib/active_model/naming.rb#L148) Missing dependencies for Object#blank? defined in `active_support/core_ext/object/blank`, used at [L131](https://github.com/rails/rails/blob/master/activemodel/lib/active_model/naming.rb#L131) | ||||
* | | Convert ActiveModel to 1.9 hash syntax. | Patrick Robertson | 2013-05-01 | 1 | -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' ). | ||||
* | | cleanup, removed dispensable `require` statements from `ActiveModel` | Yves Senn | 2012-11-25 | 1 | -1/+0 |
| | | |||||
* | | cleanup, remove broken whitespace | Yves Senn | 2012-11-25 | 1 | -2/+2 |
| | | |||||
* | | Trivial documentation fix for ActiveModel::Naming comment. | Dennis Taylor | 2012-11-09 | 1 | -2/+2 |
| | | |||||
* | | minor edits in AM documentation [ci skip] | Francesco Rodriguez | 2012-10-21 | 1 | -1/+1 |
|/ | |||||
* | Refactor model name logic and make it a real private class method | Carlos Antonio da Silva | 2012-08-11 | 1 | -5/+8 |
| | | | | | | | Under a "private" call, class methods are not real private methods, they're public just like any other method. Make model_name_from_record_or_class a private class method, and nodoc it. | ||||
* | Naming helpers should first check if passed object responds to model_name | Bert Goethals | 2012-08-08 | 1 | -5/+3 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-08-04 | 1 | -12/+20 |
|\ | | | | | | | | | | | Conflicts: activemodel/lib/active_model/secure_password.rb activerecord/lib/active_record/associations/collection_proxy.rb | ||||
| * | add example to ActiveModel::Naming#model_name [ci skip] | Francesco Rodriguez | 2012-07-27 | 1 | -0/+8 |
| | | |||||
| * | fix AM::Naming examples [ci skip] | Francesco Rodriguez | 2012-07-27 | 1 | -12/+12 |
| | | |||||
* | | load active_support/core_ext/module/delegation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | | |||||
* | | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
|/ | |||||
* | update ActiveModel::Name documentation [ci skip] | Francesco Rodriguez | 2012-06-25 | 1 | -1/+133 |
| | |||||
* | update ActiveModel::Naming documentation | Francesco Rodriguez | 2012-06-23 | 1 | -7/+8 |
| | |||||
* | Refactor human attribute name | Carlos Antonio da Silva | 2012-04-28 | 1 | -1/+1 |
| | |||||
* | Don't include deprecation in AM::Naming anymore | Grant Hutchins | 2012-03-31 | 1 | -1/+0 |
| | |||||
* | no need to freeze things all the time | Aaron Patterson | 2012-03-26 | 1 | -8/+7 |
| | |||||
* | ActiveModel::Name does not inherit from string | Lukasz Sarnacki | 2012-03-26 | 1 | -11/+16 |
| | |||||
* | Remove ActiveModel::Naming#partial_path | Grant Hutchins | 2012-03-10 | 1 | -4/+1 |
| | | | It was deprecated in 3.2 | ||||
* | Added missing ActiveModel::Naming dependency. | Shane Hanna | 2012-03-09 | 1 | -0/+1 |
| | | | | | ActiveModel::Name constructor expects to be able to call #blank? on a String but the core Object#blank? extension is never required. | ||||
* | Improve cache on route_key lookup. | José Valim | 2011-12-08 | 1 | -2/+23 |
| | |||||
* | ActiveModel::Name#i18n_key: Fix doc and add tests | Marc-Andre Lafortune | 2011-12-05 | 1 | -2/+2 |
| | |||||
* | make ActiveModel::Name fail gracefully with anonymous classes | Jakub Kuźma | 2011-11-24 | 1 | -0/+3 |
| | |||||
* | Rely on a public contract between railties instead of accessing railtie ↵ | José Valim | 2011-11-23 | 1 | -11/+13 |
| | | | | methods directly. | ||||
* | Rename new method to_path to to_partial_path to avoid conflicts with ↵ | José Valim | 2011-08-01 | 1 | -1/+1 |
| | | | | File#to_path and similar. | ||||
* | Let ActiveModel instances define partial paths. | Grant Hutchins & Peter Jaros | 2011-07-25 | 1 | -0/+3 |
| | | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances. | ||||
* | Get rid of the alternate namespace lookup. | José Valim | 2011-06-11 | 1 | -4/+3 |
| | |||||
* | Brought back alternative convention for namespaced models in i18n. | thoefer | 2011-06-08 | 1 | -3/+4 |
| | |||||
* | Specify the name to be used for ActiveModel::Name fixes #1168 | Yves Senn | 2011-05-20 | 1 | -2/+3 |
| | | | | This patch allows to specify the name of your models independent of the class name. | ||||
* | Removed extra whitespace | Sebastian Martinez | 2011-04-26 | 1 | -1/+1 |
| | |||||
* | Bring back AMo#i18n_key method | Santiago Pastorino | 2011-03-30 | 1 | -5/+10 |
| | |||||
* | Revert "Properly interpolate i18n keys in modules [#5572 state:resolved]" | Santiago Pastorino | 2011-02-27 | 1 | -10/+5 |
| | | | | | | | This breaks #6448, you should use :"module/class" as key for namespacing [#6448 state:committed] This reverts commit 8d30193b08bd2321a7a78a1f481bd5e4d4d45557. | ||||
* | fix type: remove extra period | Nicholas Rowe | 2011-02-17 | 1 | -1/+1 |
| | |||||
* | Added missing AS require to active_model/naming.rb | snusnu | 2010-10-30 | 1 | -0/+1 |
| | | | | | | | | | | | | | | We saw a failing spec when running the DataMapper ActiveModel compliance specs for dm-active_model. ActiveModel::Naming#model_name relies on the Module#parents method defined in active_support/core_ext/module/introspection.rb Adding the appropriate require statement of course fixed our specs. |