Skip to content

Commit

Permalink
Fix typo in active_record/merit_generator.rb (#345)
Browse files Browse the repository at this point in the history
Line #16 was referring to the migration_template source as 'add_merit_fields_to_model.rb'.
This source does not exist as the actual extension is `.erb`. This caused the task
to fail as there is no template with the name 'add_merit_fields_to_model.rb'.

[fixes #344]
  • Loading branch information
jlholm committed Jun 13, 2020
1 parent bde91e0 commit 294fd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/merit/generators/active_record/merit_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.next_migration_number(path)
end

def copy_migrations_and_model
migration_template 'add_merit_fields_to_model.rb',
migration_template 'add_merit_fields_to_model.erb',
"db/migrate/add_merit_fields_to_#{table_name}.rb"
end

Expand Down

0 comments on commit 294fd12

Please sign in to comment.