Sha256: 635fb8387fe5faecf99f83ef06a1e09fdb7b724c24cdb413d18c4818d75c1086

Contents?: true

Size: 589 Bytes

Versions: 25

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  module Tags
    class Form < BaseBlock
      def initialize(tag_name, markup, tokens)
        super
        @tag_name = tag_name
        @markup = markup
        @model_name = markup.scan(::Liquid::QuotedFragment).flatten.first
        # we want to allow {% form method: delete %}, but also {% form form, method: delete %}
        @model_name = 'form' if @model_name.nil? || @model_name == '' || @model_name[-1] == ':'
        parse_attributes(markup)
      end

      def parse_main_value(_tag_name, _markup); end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
platformos-check-0.4.14 lib/platformos_check/tags/form.rb
platformos-check-0.4.13 lib/platformos_check/tags/form.rb
platformos-check-0.4.12 lib/platformos_check/tags/form.rb
platformos-check-0.4.11 lib/platformos_check/tags/form.rb
platformos-check-0.4.10 lib/platformos_check/tags/form.rb
platformos-check-0.4.9 lib/platformos_check/tags/form.rb
platformos-check-0.4.8 lib/platformos_check/tags/form.rb
platformos-check-0.4.7 lib/platformos_check/tags/form.rb
platformos-check-0.4.6 lib/platformos_check/tags/form.rb
platformos-check-0.4.5 lib/platformos_check/tags/form.rb
platformos-check-0.4.4 lib/platformos_check/tags/form.rb
platformos-check-0.4.3 lib/platformos_check/tags/form.rb
platformos-check-0.4.2 lib/platformos_check/tags/form.rb
platformos-check-0.4.1 lib/platformos_check/tags/form.rb
platformos-check-0.4.0 lib/platformos_check/tags/form.rb
platformos-check-0.3.3 lib/platformos_check/tags/form.rb
platformos-check-0.3.1 lib/platformos_check/tags/form.rb
platformos-check-0.3.0 lib/platformos_check/tags/form.rb
platformos-check-0.2.2 lib/platformos_check/tags/form.rb
platformos-check-0.2.1 lib/platformos_check/tags/form.rb