Sha256: a60834ec78207962c7415473874b7c2c777d80ef6fb673591a57b72e958bc5b0
Contents?: true
Size: 510 Bytes
Versions: 51
Compression:
Stored size: 510 Bytes
Contents
<% module_namespacing do %>class <%= class_name %>TabulatrData < Tabulatr::Data <% attributes = attributes_names %><% if class_name.constantize.table_exists? %><% attributes << class_name.constantize.column_names.map(&:to_sym) %><% end %><% attributes = attributes.flatten.uniq %><% if attributes.any? %> search :<%= attributes.last %> <% end %> <% attributes.each do |a| %> column :<%= a %> <% end %> <% association_names.each do |attribute| %> association :<%= attribute %>, :id <% end %> end <% end %>
Version data entries
51 entries across 51 versions & 1 rubygems