class Voom::Presenters::DSL::Components::Actions::Replaces
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::Actions::Base::new
# File lib/voom/presenters/dsl/components/actions/replaces.rb, line 9 def initialize(**attribs_, &block) super(type: :replaces, **attribs_, &block) option_value = attribs.delete(:ignore_input_values) { :not_found } @options.merge!(ignore_input_values: option_value) unless option_value == :not_found @host = @params.fetch(:host, false) end
Public Instance Methods
url()
click to toggle source
# File lib/voom/presenters/dsl/components/actions/replaces.rb, line 16 def url presenter = _expand_namespace_(options[:presenter], namespace) @parent.router.url(render: presenter, command: options[:path], context: params, host: @host) end