Sha256: 47491ed720e75361aebf3fe9af86c148c0417c87ffbd7a62083004131166b20d

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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