diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-03-10 23:02:43 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-03-10 23:02:43 +0300 |
commit | fba33ea9eff0c3b639488cff653d1b95482f37a2 (patch) | |
tree | 75548890e212e365793c051538c5394f018af220 /config/initializers/0_inflections.rb | |
parent | c4ba6ea684052ff555e8683c23be5b25bf5abd11 (diff) |
Execute inflections initializer earlier
Diffstat (limited to 'config/initializers/0_inflections.rb')
-rw-r--r-- | config/initializers/0_inflections.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/initializers/0_inflections.rb b/config/initializers/0_inflections.rb new file mode 100644 index 00000000000..d4197da3fa9 --- /dev/null +++ b/config/initializers/0_inflections.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format +# (all these examples are active by default): +# ActiveSupport::Inflector.inflections do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end +# +ActiveSupport::Inflector.inflections do |inflect| + inflect.uncountable %w(award_emoji project_statistics) +end |