lib/sn_foil/contexts/show_context.rb in snfoil-0.4.3 vs lib/sn_foil/contexts/show_context.rb in snfoil-0.5.0

- old
+ new

@@ -13,11 +13,11 @@ end class_methods do attr_reader :i_setup_show_hooks - def show(id:, user: nil, **options) - new(user).show(**options, id: id) + def show(id:, entity: nil, **options) + new(entity).show(**options, id: id) end def setup_show(method = nil, **options, &block) raise ArgumentError, '#setup_show requires either a method name or a block' if method.nil? && block.nil?