Skip to content

Commit

Permalink
Merge pull request #257 from MichaelDowse/master
Browse files Browse the repository at this point in the history
Remove Arity check that does not work with ActiveRecord objects
  • Loading branch information
schneems committed Jun 2, 2019
2 parents 86a8785 + 0bf7ebb commit 22f65b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wicked/controller/concerns/render_redirect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def render_wizard(resource = nil, options = {}, params = {})
def process_resource!(resource, options = {})
return unless resource

if options[:context] && resource.method(:save).arity >= 1
if options[:context]
did_save = resource.save(context: options[:context])
else
did_save = resource.save
Expand Down

0 comments on commit 22f65b9

Please sign in to comment.