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-1.0.5 lib/generators/ninja_model/model/templates/model.rb
ninja-model-1.0.4 lib/generators/ninja_model/model/templates/model.rb
ninja-model-1.0.3 lib/generators/ninja_model/model/templates/model.rb
ninja-model-1.0.2 lib/generators/ninja_model/model/templates/model.rb
ninja-model-1.0.1 lib/generators/ninja_model/model/templates/model.rb
ninja-model-1.0.0 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.9.6 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.9.5 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.9.4 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.9.3 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.9.2 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.9.1 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.9.0 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.8.1 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.8.0 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.7.3 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.7.2 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.7.1 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.7.0 lib/generators/ninja_model/model/templates/model.rb
ninja-model-0.6.2 lib/generators/ninja_model/model/templates/model.rb