Sha256: 83477d455223f5e43e734026f9a15f91687d650c1f7e481f82e000f4852b6bf6

Contents?: true

Size: 215 Bytes

Versions: 2

Compression:

Stored size: 215 Bytes

Contents

class <%= class_name %>
  include Ashikawa::AR::Model

<% attributes.each do |attribute| -%>
  attribute :<%= attribute.name %><% unless attribute.type.to_s == "string" %>, <%=attribute.type%><%end%>
<% end -%>
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ashikawa-ar-0.1.3 lib/rails/generators/ashikawa/templates/model.rb.tt
ashikawa-ar-0.1.2 lib/rails/generators/ashikawa/templates/model.rb.tt