Sha256: 5a1a24bd7d9552dc6be5458ea45d195a26d32c42800d350e413ae49dfa65cca2

Contents?: true

Size: 133 Bytes

Versions: 16

Compression:

Stored size: 133 Bytes

Contents

class <%= model.to_s -%> < ActiveRecord::Base
<% model.associations.each do |k, v| -%>
  <%= "#{v[:type]} :#{k}"  -%>
<% end -%>
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mattknox-goaloc-0.0.3 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.0.5 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.0.6 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.0.7 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.0.8 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.0.9 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.1.0 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.0 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.1 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.2 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.3 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.5 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.6 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.7 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.8 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.2.9 lib/goaloc/generators/rails/model.rb.erb