Add Style enforcer (via Rubocop)

It will fail the build, but as it is currently,
most of the cops are 'todos'. Great for new contributors.. :)
This commit is contained in:
Benjamin Fleischer
2015-08-30 23:17:25 -05:00
parent 6784866a2d
commit 09c97de90d
12 changed files with 430 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
<% module_namespacing do -%>
class <%= class_name %>Serializer < <%= parent_class_name %>
attributes <%= attributes_names.map(&:inspect).join(", ") %>
<% association_names.each do |attribute| -%>
has_one :<%= attribute %>
<% end -%>
end
<% end -%>