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