lib/eucalypt/helpers/inflect.rb in eucalypt-0.8.0 vs lib/eucalypt/helpers/inflect.rb in eucalypt-0.9.0

- old
+ new

@@ -35,10 +35,10 @@ def constant_pluralize(string) resources(string).camelize end - %i[controller helper policy].each do |type| + %i[controller helper].each do |type| define_method type do |string| s = resource(string.singularize) if s.end_with? "_#{type}" name = s.split("_#{type}").first "#{name.singularize}_#{type}" \ No newline at end of file