Sha256: c866589d1c3595d0cc0b9a16523e02dc83e1b32a96171bf0331b5afdbc67c116
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module Hyphenify module ActionView module Base extend ActiveSupport::Concern included do alias_method_chain :tag_options, :hyphen end private def tag_options_with_hyphen(options, escape = true) options.stringify_keys! %w[id class for].each { |key| options[key] = options[key].to_s.dasherize if options.has_key? key } tag_options_without_hyphen options, escape end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hyphenify-0.0.6 | lib/hyphenify/action_view/base.rb |