Changed behaviour: Since we don't use sub directories for seeds files we replace the slashes with underscores.

This commit is contained in:
Thorsten Eckel 2017-05-14 20:40:50 +02:00
parent 690fcbd81d
commit 1425be7335

View file

@ -17,7 +17,7 @@ module CanSeed
end
def seedfile
"#{Rails.root}/db/seeds/#{name.pluralize.underscore}.rb"
"#{Rails.root}/db/seeds/#{name.pluralize.underscore.tr('/', '_')}.rb"
end
end
end