Skip to content

Commit

Permalink
Use correct layout for Devise in publify_core
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Aug 18, 2017
1 parent 223ec30 commit 8657341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions config/application.rb
Expand Up @@ -16,10 +16,6 @@ class Application < Rails::Application

# To avoid exception when deploying on Heroku
config.assets.initialize_on_precompile = false

config.to_prepare do
DeviseController.layout 'accounts'
end
end

# Load included libraries.
Expand Down
4 changes: 4 additions & 0 deletions publify_core/lib/publify_core/engine.rb
Expand Up @@ -5,6 +5,10 @@ class Engine < ::Rails::Engine
generators.fixture_replacement :factory_girl, dir: 'spec/factories'
end

config.to_prepare do
DeviseController.layout 'accounts'
end

initializer 'publify_core.assets.precompile' do |app|
app.config.assets.precompile += %w(
publify.js
Expand Down

0 comments on commit 8657341

Please sign in to comment.