mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
8505e8673b
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.
18 lines
397 B
YAML
18 lines
397 B
YAML
en:
|
|
attributes:
|
|
id: 'id'
|
|
ransack:
|
|
attributes:
|
|
person:
|
|
name: Full Name
|
|
only_admin: admin uSer Only
|
|
salary: wages
|
|
awesome: ransack is really awesome
|
|
article:
|
|
body: maiN BoDy
|
|
activerecord:
|
|
attributes:
|
|
namespace/article:
|
|
title: AR Namespaced Title
|
|
namespace_article:
|
|
title: Old Ransack Namespaced Title
|