Module: SimpleAttribute::Helpers

Defined in:
lib/simple_attribute/helpers.rb

Instance Method Summary collapse

Instance Method Details

#simple_attribute_for(record, attribute, options = {}) ⇒ Object Also known as: attribute_for



3
4
5
6
# File 'lib/simple_attribute/helpers.rb', line 3

def simple_attribute_for(record, attribute, options = {})
  options = options.merge(record: record, attribute: attribute)
  SimpleAttribute::Builder.new(self, options).render
end