Functional tests now work properly, bearing in mind whether a user is logged in or...
[depot.git] / vendor / rails / railties / lib / rails_generator / generators / components / model / templates / model.rb
1 class <%= class_name %> < ActiveRecord::Base
2 <% attributes.select(&:reference?).each do |attribute| -%>
3 belongs_to :<%= attribute.name %>
4 <% end -%>
5 end