Skip to content

Instantly share code, notes, and snippets.

@backpackerhh
Last active September 18, 2017 10:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save backpackerhh/a6b563a3cb3adc761252 to your computer and use it in GitHub Desktop.
Save backpackerhh/a6b563a3cb3adc761252 to your computer and use it in GitHub Desktop.
Inflections
# 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
@Aneesh540
Copy link

Thanks for saving our Lab Exam
Regards
Amit Sharma, Amit Sagtani, Aneesh Jain, Amit Jodha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment