<% module_namespacing do -%> class <%= class_name %> include Ampere::Model <% attributes.reject{|attr| attr.reference?}.each do |attribute| -%> field :<%= attribute.name %> <% end -%> end <% end -%>