Sha256: 242e2b2d6d7606a08669b1dd7771e177c190ea0b8d2e780e3d8db73540764cda

Contents?: true

Size: 560 Bytes

Versions: 2

Compression:

Stored size: 560 Bytes

Contents

module PluginAWeek #:nodoc:
  module StyledInputs
    module Extensions #:nodoc:
      module InstanceTag
        def self.included(base) #:nodoc:
          base.class_eval do
            alias_method_chain :tag, :styled_inputs
          end
        end
        
        def tag_with_styled_inputs(name, options, *args) #:nodoc:
          tag_without_styled_inputs(name, styled_input(name, options), *args)
        end
      end
    end
  end
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

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