From 8bf4e851b45271f6c7cdbd1c87fd50c0e4afddbd Mon Sep 17 00:00:00 2001 From: Stefano Lecchi Date: Fri, 20 Oct 2023 15:40:57 +0200 Subject: [PATCH] fix: default! for :index and :show was overriding options to empty hash --- lib/solipsist/actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solipsist/actions.rb b/lib/solipsist/actions.rb index fa1b96d..2470a87 100644 --- a/lib/solipsist/actions.rb +++ b/lib/solipsist/actions.rb @@ -33,7 +33,7 @@ def default!(model, options = {}, &block) when 'create' _implicit_create_action(model, options, &block) when 'index', 'show' - render_default!(model, options = {}, &block) + render_default!(model, options, &block) else raise "No implicit action for #{params[:action]}" end