Skip to content

Instantly share code, notes, and snippets.

@dcuadraq
Created July 24, 2017 17:11
Show Gist options
  • Save dcuadraq/6220693fc2692666919f452b4c4b94a3 to your computer and use it in GitHub Desktop.
Save dcuadraq/6220693fc2692666919f452b4c4b94a3 to your computer and use it in GitHub Desktop.
Fix for Rails not reloading correctly for changes on controllers having Omniauthable
# config/application.rb
# Fix for Please add devise :omniauthable
initializer 'main_app.auto_load' do |app|
Rails.application.reloader.to_run(:before) do
Rails.application.reloader.prepare!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment