Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- = @leads.length == 1 ? 'is' : 'are'
- ActiveSupport::Inflector.inflections do |inflection|
- inflection.irregular "is", "are"
- end
- pluralize(@leads.length,'is')
- 2 are
- def pluralize_no_count(count, singular, plural = nil)
- ((count == 1 || count == '1') ? singular : (plural || singular.pluralize))
- end
- Inflector.inflections do |inflection|
- inflection.irregular "is", "are"
- end
- 'is'.pluralize # => 'are'
Add Comment
Please, Sign In to add comment