Sha256: 1fc59343f3bebb43c8182362572d53ae76181d1066837a8b301c9459b77e35d8

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 Bytes

Contents

module AmpHtml
    module DynamicContentHelper

        def form_tag url_for_options = {}, options = {}, &block
            if amp?
                options[:action] = url_for_options
                component 'amp/form', options
            else
                super
            end
        end

    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amp-html-1.2.1 app/helpers/amp_html/dynamic_content_helper.rb
amp-html-1.2.0 app/helpers/amp_html/dynamic_content_helper.rb
amp-html-1.1.0 app/helpers/amp_html/dynamic_content_helper.rb
amp-html-1.0.1 app/helpers/amp_html/dynamic_content_helper.rb
amp-html-1.0.0 app/helpers/amp_html/dynamic_content_helper.rb