diff options
Diffstat (limited to 'railties/lib/generators/active_record/model/templates/model.rb')
-rw-r--r-- | railties/lib/generators/active_record/model/templates/model.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/active_record/model/templates/model.rb b/railties/lib/generators/active_record/model/templates/model.rb index 0656b06dfe..fb337d10e6 100644 --- a/railties/lib/generators/active_record/model/templates/model.rb +++ b/railties/lib/generators/active_record/model/templates/model.rb @@ -1,4 +1,4 @@ -class <%= class_name %> < ActiveRecord::Base +class <%= class_name %> < <%= options[:parent] %> <% attributes.select {|attr| attr.reference? }.each do |attribute| -%> belongs_to :<%= attribute.name %> <% end -%> |