Sha256: 80d80195f26b76d14fcf3c0f62b3f2f1bf8861b055357e6a4a57033fd4711efa

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

module PluginAWeek #:nodoc:
  module StyledInputs
    module Extensions #:nodoc:
      module TagHelper
        def self.included(base) #:nodoc:
          base.class_eval do
            alias_method_chain :tag, :styled_inputs
          end
        end
        
        def tag_with_styled_inputs(name, options = nil, open = false) #:nodoc:
          tag_without_styled_inputs(name, styled_input(name, options), open)
        end
      end
    end
  end
end

ActionView::Helpers::TagHelper.class_eval do
  include PluginAWeek::StyledInputs::Extensions::TagHelper
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
styled_inputs-0.0.3 lib/styled_inputs/extensions/tag_helper.rb