lib/generators/trestle/auth/admin/admin_generator.rb in trestle-auth-0.4.0 vs lib/generators/trestle/auth/admin/admin_generator.rb in trestle-auth-0.4.1

- old
+ new

@@ -17,11 +17,19 @@ def devise? options[:devise] end protected + def parameter_name + singular_name + end + def plural_name - model.demodulize.underscore.pluralize + singular_name.pluralize + end + + def singular_name + model.demodulize.underscore end end end end end