Skip to content

Commit

Permalink
fix: default! for :index and :show was overriding options to empty hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Lecchi committed Oct 20, 2023
1 parent c4ab323 commit 8bf4e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solipsist/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bf4e85

Please sign in to comment.