Skip to content

Commit 2f719ec

Browse files
authored
Use original syntax for inertia_share method to avoid a breaking change to users explicitly sending a hash into the method
1 parent c747bad commit 2f719ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/inertia_rails/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Controller
1414
end
1515

1616
module ClassMethods
17-
def inertia_share(**attrs, &block)
17+
def inertia_share(attrs = {}, &block)
1818
@inertia_share ||= []
1919
@inertia_share << attrs.freeze unless attrs.empty?
2020
@inertia_share << block if block

0 commit comments

Comments
 (0)