Module: Effective::WizardController::WickedOverrides
- Included in:
- Effective::WizardController
- Defined in:
- app/controllers/concerns/effective/wizard_controller/wicked_overrides.rb
Instance Method Summary collapse
-
#wizard_path(goto_step = nil, options = {}) ⇒ Object
Changes made here to work inside an effective rails engine.
Instance Method Details
#wizard_path(goto_step = nil, options = {}) ⇒ Object
Changes made here to work inside an effective rails engine
github.com/zombocom/wicked/blob/main/lib/wicked/controller/concerns/path.rb github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/url_for.rb#L180
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/concerns/effective/wizard_controller/wicked_overrides.rb', line 9 def wizard_path(goto_step = nil, = {}) = .respond_to?(:to_h) ? .to_h : = { :controller => wicked_controller, :action => 'show', :id => goto_step || params[:id], :only_path => true }.merge() = .reverse_merge!() effective_resource.url_helpers.url_for() end |