Changed behaviour: Since we don't use sub directories for seeds files we replace the slashes with underscores.
This commit is contained in:
parent
690fcbd81d
commit
1425be7335
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue