Sha256: b53e5701112116fc75a8008bc57a0866b51857c058802689c8fc9b055a4df815

Contents?: true

Size: 309 Bytes

Versions: 6

Compression:

Stored size: 309 Bytes

Contents

class <%= association_class_name(plural_name) %> < <%= parent_class_name.classify %>
<% attributes.select {|attr| attr.reference? }.each do |attribute| -%>
  belongs_to :<%= attribute.name %>
<% end -%>
<% [name, group_name, user_name].sort.each do |ref_name| -%>
  belongs_to :<%= ref_name %>
<% end -%>
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ixtlan-guard-0.7.0 lib/generators/active_record/templates/flavor_model.rb
ixtlan-guard-0.6.1 lib/generators/active_record/templates/flavor_model.rb
ixtlan-guard-0.6.0 lib/generators/active_record/templates/flavor_model.rb
ixtlan-guard-0.5.0 lib/generators/active_record/templates/flavor_model.rb
ixtlan-guard-0.4.1 lib/generators/active_record/templates/flavor_model.rb
ixtlan-guard-0.4.0 lib/generators/active_record/templates/flavor_model.rb