1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00
Commit graph

4 commits

Author SHA1 Message Date
Jon Atack
8505e8673b Fix #label specs with has_many associations and
improve #label test coverage.

Fixed specs: searches/labels for `has_many` associations
need to use pluralized model_name (was singularized).

Test for finding the translation when provided in the I18n file,
as well for correctly falling back (with coherent capitalization)
in different cases when no translation is provided.

Test with direct attributes (both one word and multi-word),
as well as with `has_many` and `belongs_to` associations.

To-do: improve Ransack I18n documentation.
2014-10-18 00:20:00 +02:00
Bonias
ba6a8fcb18 Fixes issue #273 - translations for namespaced models. ActiveRecord uses i18n_key methods which return "namespace/model_name"("namespace.model_name" in rails 3.0.x) for Namespace::ModelName. Ransack should used the same pattern. 2013-09-05 11:13:03 +02:00
Anatoliy Pronin
08c375d4b0 changed the translation of common attributes 2013-03-17 02:34:07 +04:00
Ernie Miller
cec4e3d64f Fix/add specs, remove duplicate base.rb for edge and 3.0 2011-06-04 18:01:12 -04:00