Sha256: 97cf20cad5fc64b076b9389be2b305f7d200ce0b37cf4b9232b7e904b613db7b
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
module StyledInputs module Extensions #:nodoc: # Adds support for hooking calls to +tag+ module TagHelper def self.included(base) #:nodoc: base.class_eval do alias_method_chain :tag, :styled_inputs end end # Ensure that the options are updated for input tags before generating # the html for the tag def tag_with_styled_inputs(name, options = nil, *args) #:nodoc: tag_without_styled_inputs(name, styled_input(name, options), *args) end end end end ActionView::Helpers::TagHelper.class_eval do include StyledInputs::Extensions::TagHelper end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
styled_inputs-0.1.0 | lib/styled_inputs/extensions/tag_helper.rb |