Skip to content

Commit

Permalink
Fix the autoload issue under rails 6
Browse files Browse the repository at this point in the history
  • Loading branch information
rociiu committed Dec 31, 2019
1 parent f8e89e2 commit 2365f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree_social/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Engine < Rails::Engine

# Resolves omniauth_callback error on development env
# See https://github.com/spree-contrib/spree_social/issues/193#issuecomment-296585601
if Rails::VERSION::MAJOR == 5
if Rails::VERSION::MAJOR >= 5
initializer 'main_app.auto_load' do |app|
Rails.application.reloader.to_run(:before) do
Rails.application.reloader.prepare!
Expand Down

0 comments on commit 2365f99

Please sign in to comment.