Sha256: 500f49b3678d0408e8418beac36841fb9ed5b6e31bb6ad206fe0ca7199992aab

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

require 'masterview/deprecated/directive_base'  # Backwards compat for old directive impls
module MasterView
  module DirectivesOld

    # Old implementation of submit form helper directive
    # Test backwards compat in new MasterView 0.3.0 system (registry, paths, directive rework)
    class Submit < MasterView::DirectiveBaseOld
      def stag(directive_call_stack); end

      def etag(directive_call_stack)
        remove_strings_from_attr_value!
        prepend_to_attr_value! quote( attrs_lck['value'] ) #prepend quoted submit button name
        erb_content('submit_tag ' + attr_value)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
masterview-0.3.2 test/fixtures/deprecated_directive_base_directives/submit.rb
masterview-0.3.3 test/fixtures/deprecated_directive_base_directives/submit.rb
masterview-0.3.4 test/fixtures/deprecated_directive_base_directives/submit.rb