From 1425be7335f1ee7d965de386c2bbb202b07c6cce Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Sun, 14 May 2017 20:40:50 +0200 Subject: [PATCH] Changed behaviour: Since we don't use sub directories for seeds files we replace the slashes with underscores. --- app/models/concerns/can_seed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/can_seed.rb b/app/models/concerns/can_seed.rb index 13d6d91bd..89fd7d879 100644 --- a/app/models/concerns/can_seed.rb +++ b/app/models/concerns/can_seed.rb @@ -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