Sha256: e3583c764e4c48a9533b403ae4e061e5826346da4e264f3a942795c70e5cb0ea

Contents?: true

Size: 156 Bytes

Versions: 30

Compression:

Stored size: 156 Bytes

Contents

require 'ninja_model'

class <%= class_name %> < NinjaModel::Base
<%- attributes.each do |a| -%>
  attribute :<%= a.name %>, :<%= a.type %>
<%- end -%>
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ninja-model-0.6.1 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.6.0 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.5.7 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.5.6 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.5.5 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.5.4 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.5.3 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.5.2 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.5.1 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.4.2 lib/generators/ninja_model/model/templates/model.rb