Skip to content

Commit

Permalink
Add require settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nard-tech committed Apr 28, 2018
1 parent a054a1d commit 689367d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tasks/seed.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# frozen_string_literal: true
if defined?(Rails)
initializer = Rails.root.join('config', 'initializers', 'seedbank.rb')
require initializer if initializer.exist?
end

namespace :db do
using Seedbank::DSL

override_dependency = ['db:seed:common']

namespace :seed do
Expand Down

0 comments on commit 689367d

Please sign in to comment.