Skip to content

Commit

Permalink
It's called seed now, not load
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jan 7, 2024
1 parent bd4d0bf commit f6697b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/oaken/convert/fixtures_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def prepend_prepare_to_seeds

code = +"Oaken.prepare do\n"
code << " register #{namespaces.join(", ")}\n\n" if namespaces.any?
code << " load :#{@root_model.plural}, :data\n"
code << " seed :#{@root_model.plural}, :data\n"
code << "end\n"

inject_into_file "db/seeds.rb", code, before: /\A/
Expand Down

0 comments on commit f6697b6

Please sign in to comment.