lib/generators/cantango/permit_generator.rb in cantango-0.9.4.1 vs lib/generators/cantango/permit_generator.rb in cantango-0.9.4.2

- old
+ new

@@ -40,9 +40,10 @@ is_group? ? "role_group_permit.erb" : "role_permit.erb" end def permit_target name + name = name.to_s.underscore return "#{name}_permit.rb" if is_user? return "#{name}_account_permit.rb" if is_account? is_group? ? "#{name}_role_group_permit.rb" : "#{name}_role_permit.rb" end