Sha256: deb8ba9d6c495756c33ea10cf80a82c7c26f1e57ef220cf9fa57371bf153a5bc

Contents?: true

Size: 560 Bytes

Versions: 2

Compression:

Stored size: 560 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, *args) #:nodoc:
          tag_without_styled_inputs(name, styled_input(name, options), *args)
        end
      end
    end
  end
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
styled_inputs-0.0.4 lib/styled_inputs/extensions/tag_helper.rb
styled_inputs-0.0.5 lib/styled_inputs/extensions/tag_helper.rb