Skip to content

Commit

Permalink
Fix the finish hook because the engine prevents the app running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-smits committed May 7, 2020
1 parent 5dfeeb7 commit ae15c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swaggard/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def rake?
File.basename($PROGRAM_NAME) == 'rake'
end

initializer 'swaggard.finisher_hook', after: :finisher_hook do |app|
initializer 'swaggard.finisher_hook' do |app|
app.reload_routes!

if Rails.env.development? && !rake? && !app.methods.include?(:assets_manifest)
Expand Down

0 comments on commit ae15c90

Please sign in to comment.