Module: SimpleAttribute::Helpers
- Defined in:
- lib/simple_attribute/helpers.rb
Instance Method Summary collapse
-
#simple_attribute_for(record, attribute, options = {}) ⇒ Object
(also: #attribute_for)
Render simple attribute.
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, ={}) = .merge(record: record, attribute: attribute) SimpleAttribute::Builder.new(self, ).render end |