Sha256: a877533579772268a827c734e6a8b24e9c83d9563d9a8dbaf06433c287a68e3a

Contents?: true

Size: 451 Bytes

Versions: 6

Compression:

Stored size: 451 Bytes

Contents

module WebClient
  module Actions
    class Post
      include Voom::Presenters::WebClient::Helpers::ExpandHash

      def call(action, parent_id, *)
        # Type, URL, Options, Params (passed into javascript event/action classes)
        [action.type, action.url,
         expand_hash(action.options).merge({__parent_id__: parent_id, input_tag: action.options[:input_tag]}),
         expand_hash(action.dynamic_params)]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 views/mdc/components/actions/post.rb
voom-presenters-2.1.0 views/mdc/components/actions/post.rb
voom-presenters-2.0.3 views/mdc/components/actions/post.rb
voom-presenters-2.0.2 views/mdc/components/actions/post.rb
voom-presenters-2.0.1 views/mdc/components/actions/post.rb
voom-presenters-2.0.0 views/mdc/components/actions/post.rb