Last active
September 18, 2017 10:24
-
-
Save backpackerhh/a6b563a3cb3adc761252 to your computer and use it in GitHub Desktop.
Inflections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ) | |
inflect.plural /(or)$/i, '\1es' | |
inflect.singular /(or)es$/i, '\1' | |
inflect.plural /ón$/i, 'ones' | |
inflect.singular /ones$/i, 'ón' | |
inflect.plural /(d)$/i, '\1es' | |
inflect.singular /(d)es$/i, '\1' | |
inflect.plural /(a)$/i, '\1s' | |
inflect.plural 'job_id', 'job_ids' | |
end | |
# | |
# These inflection rules are supported but not enabled by default: | |
# ActiveSupport::Inflector.inflections do |inflect| | |
# inflect.acronym 'RESTful' | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for saving our Lab Exam
Regards
Amit Sharma, Amit Sagtani, Aneesh Jain, Amit Jodha