Skip to content

Commit

Permalink
Load custom configuration as documented
Browse files Browse the repository at this point in the history
Let's see if the approach set out in the Rails documentation works now
that we have refactored related tests.
  • Loading branch information
andrewgarner committed Aug 17, 2018
1 parent fbe2aa8 commit 1d735b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ class Application < Rails::Application
# Do not swallow errors in after_commit/after_rollback callbacks.
# config.active_record.raise_in_transactional_callbacks = true

config.before_initialize do
config.taxonomy_navigation_links_out = config_for(:taxonomy_navigation_links_out)
end
# Load links out configuration for taxonomy navigation
config.taxonomy_navigation_links_out = config_for(:taxonomy_navigation_links_out)
end
end

0 comments on commit 1d735b7

Please sign in to comment.