Sha256: 316b04f001c95839e74c5ae7aa7ae4e59be960a7026fdf828b8e60e108c29eff
Contents?: true
Size: 406 Bytes
Versions: 108
Compression:
Stored size: 406 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %> < <%= parent_class_name.classify %> <% attributes.select {|attr| attr.reference? }.each do |attribute| -%> belongs_to :<%= attribute.name %> <% end -%> <% if !accessible_attributes.empty? -%> attr_accessible <%= accessible_attributes.map {|a| ":#{a.name}" }.sort.join(', ') %> <% else -%> # attr_accessible :title, :body <% end -%> end <% end -%>
Version data entries
108 entries across 85 versions & 13 rubygems