lib/hackathon_manager/engine.rb in hackathon_manager-0.7.1 vs lib/hackathon_manager/engine.rb in hackathon_manager-0.8.0
- old
+ new
@@ -31,10 +31,10 @@
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)
+ FactoryBot.definition_file_paths << File.expand_path('../../test/factories', __dir__) 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)