Sha256: 3cfc465503d462a47b426239406b9d05d61224662e739ad2ab604f00ea40a4ae
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
module Rancher module Api class <%= id.capitalize %> include Her::Model include Helpers::Model <% helpers.each do |helper| %> include <%= helper -%> <% end -%> <% belongs_to.each do |relation| %> belongs_to :<%= relation -%> <% end -%> <% has_one.each do |relation| %> has_one :<%= relation -%> <% end -%> <% has_many.each do |relation| %> has_many :<%= relation -%> <% end %> attributes <%= attributes.each_slice(5).map {|slice| slice.map { |k| ":#{k}" }.join(', ')}.join(",\n") %> end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rancher-api-beta-0.8.1 | templates/model.erb |