lib/hackathon_manager/engine.rb in hackathon_manager-0.5.4 vs lib/hackathon_manager/engine.rb in hackathon_manager-0.5.5

- old
+ new

@@ -30,9 +30,13 @@ # Initializer to combine this engines static assets with the static assets of the hosting site. initializer "static assets" do |app| app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public") end + initializer 'hackathon_manager.factories', after: 'factory_bot.set_factory_paths' do + FactoryBot.definition_file_paths << File.expand_path('../../../test/factories', __FILE__) if defined?(FactoryBot) + end + ActionController::Base.class_eval do # Tell Devise where to redirect the user once they sign in def after_sign_in_path_for(resource) stored_location = stored_location_for(resource) if stored_location