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

Render simple attribute



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

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