summaryrefslogtreecommitdiff
path: root/lib/generators/nifty/scaffold/templates/model.rb
blob: fe5f98059f00dba1abc9076661c5eda7cb9a0f69 (plain)
1
2
3
4
class <%= class_name %> < ActiveRecord::Base
<%= "  set_table_name :#{table_name}\n" if table_name -%>
  attr_accessible <%= model_attributes.map { |a| ":#{a.name}" }.join(", ") %>
end