Sha256: f867513c432bfd77879365802769af7da90b26acaa70bfb892fea93d5b368574

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

# Alas, I need to duplicate code from Formtastic::Inputs::Base::Numeric because
# there's no way to re-import that module.
module FormtasticBootstrap
	module Inputs
		module Base
			module Numeric

				include Formtastic::Inputs::Base::Numeric

				def wrapper_html_options
					new_class = [super[:class], "numeric", "stringish"].compact.join(" ")
					super.merge(:class => new_class)
				end

			end
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
speedo-formstrap-1.2.9 lib/formtastic-bootstrap/inputs/base/numeric.rb
speedo-formstrap-1.2.8 lib/formtastic-bootstrap/inputs/base/numeric.rb
speedo-formstrap-1.2.0 lib/formtastic-bootstrap/inputs/base/numeric.rb