Module: Instructions::Formatters

Included in:
FormHelper
Defined in:
lib/instructions/formatters.rb

Instance Method Summary collapse

Instance Method Details

#merge(attribute_state, options) ⇒ Object



3
4
5
6
7
8
# File 'lib/instructions/formatters.rb', line 3

def merge(attribute_state, options)
	configured_formatters = Configuration.formatters(attribute_state)
	tag_formatters = (options[:formatters] || {}) [attribute_state] || {}
	
	configured_formatters.merge tag_formatters
end