lib/sn_foil/contexts/show_context.rb in snfoil-0.6 vs lib/sn_foil/contexts/show_context.rb in snfoil-0.7.0

- old
+ new

@@ -49,13 +49,13 @@ end private def before_setup_show(**options) - options = setup_show(**options) - options = setup_show_hooks.reduce(options) { |opts, hook| run_hook(hook, opts) } options = setup(**options) - setup_hooks.reduce(options) { |opts, hook| run_hook(hook, opts) } + options = setup_hooks.reduce(options) { |opts, hook| run_hook(hook, opts) } + options = setup_show(**options) + setup_show_hooks.reduce(options) { |opts, hook| run_hook(hook, opts) } end end end end