Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use frozen string literal in activemodel/ | Kir Shatrov | 2017-07-16 | 1 | -0/+2 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | `self.` is not needed when calling its own instance method | Akira Matsuda | 2017-01-05 | 1 | -1/+1 |
| | | | | Actually, private methods cannot be called with `self.`, so it's not just redundant, it's a bad habit in Ruby | ||||
* | code gardening: removes redundant selfs | Xavier Noria | 2016-08-08 | 1 | -1/+1 |
| | | | | | | | | | A few have been left for aesthetic reasons, but have made a pass and removed most of them. Note that if the method `foo` returns an array, `foo << 1` is a regular push, nothing to do with assignments, so no self required. | ||||
* | applies remaining conventions across the project | Xavier Noria | 2016-08-06 | 1 | -1/+0 |
| | |||||
* | Convert ActiveModel to 1.9 hash syntax. | Patrick Robertson | 2013-05-01 | 1 | -1/+1 |
| | | | | | I also attempted to fix other styleguide violations such as { a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ). | ||||
* | minor edits in AM documentation [ci skip] | Francesco Rodriguez | 2012-10-21 | 1 | -1/+1 |
| | |||||
* | Fix human attribute_name to handle deeply nested attributes | Tsutomu Kuroda | 2012-05-16 | 1 | -2/+2 |
| | | | | | | | | | | | | When a model nests another model that also nests yet another model using accepts_nested_attributes_for method, its Errors object can have an attribute name with "contacts.addresses.street" style. In this case, the dots within the namespace should be substituted with slashes so that we can provide the translation under the "activemodel.attributes.person/contacts/addresses.street" key. This commit is related to #3859. | ||||
* | Refactor human attribute name | Carlos Antonio da Silva | 2012-04-28 | 1 | -6/+6 |
| | |||||
* | Do not modify options hash in human_attribute_name, remove reverse_merge | Carlos Antonio da Silva | 2012-04-28 | 1 | -3/+2 |
| | |||||
* | Namespaced attribute lookup now works as 'model/association.attribute'. | José Valim | 2011-12-05 | 1 | -6/+14 |
| | |||||
* | Fix human_attribute_name to handle names with dots | Tsutomu Kuroda | 2011-12-05 | 1 | -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. | ||||
* | Get rid of the alternate namespace lookup. | José Valim | 2011-06-11 | 1 | -3/+2 |
| | |||||
* | Brought back alternative convention for namespaced models in i18n. | thoefer | 2011-06-08 | 1 | -2/+3 |
| | |||||
* | Better formatting on ActiveModel::Translation | Sebastian Martinez | 2011-04-26 | 1 | -2/+2 |
| | |||||
* | Bring back AMo#i18n_key method | Santiago Pastorino | 2011-03-30 | 1 | -1/+1 |
| | |||||
* | Revert "Properly interpolate i18n keys in modules [#5572 state:resolved]" | Santiago Pastorino | 2011-02-27 | 1 | -1/+1 |
| | | | | | | | This breaks #6448, you should use :"module/class" as key for namespacing [#6448 state:committed] This reverts commit 8d30193b08bd2321a7a78a1f481bd5e4d4d45557. | ||||
* | Properly interpolate i18n keys in modules [#5572 state:resolved] | Rodrigo Rosenfeld Rosas | 2010-09-24 | 1 | -1/+1 |
| | |||||
* | Remove deprecations in ActiveModel. | José Valim | 2010-08-29 | 1 | -6/+0 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -7/+7 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -1/+1 |
| | |||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -1/+1 |
|\ | |||||
| * | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -1/+1 |
| | | |||||
* | | Revised the rest of the files from ActiveModel. | Rizwan Reza | 2010-06-14 | 1 | -6/+10 |
|/ | |||||
* | Adding documentation for ActiveModel::Translation | Mikel Lindsaar | 2010-01-18 | 1 | -2/+17 |
| | |||||
* | Allow to specify default attributes names translation in I18n yml files. | José Valim | 2010-01-07 | 1 | -2/+3 |
| | | | | | | | | | | | | For example, you could easily specify :created_at and :updated_at translations as: en: attributes: created_at: "Created at" updated_at: "Updated at" This configuration is built on ActiveModel, so it means those translations are shared between different ORMs as well (but always as a fallback). | ||||
* | Small clean up in Naming and TTranslation tests. | José Valim | 2009-12-23 | 1 | -21/+1 |
| | |||||
* | Uses Hash#reverse_merge | Jeremy Kemper | 2009-11-13 | 1 | -0/+2 |
| | |||||
* | Fix error_messages_for when instance variable names are given. | José Valim | 2009-10-21 | 1 | -0/+3 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Move validator, human_name and human_attribute_name to ActiveModel, remove ↵ | José Valim | 2009-10-20 | 1 | -0/+59 |
deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com> |