Method: Formup::Source#base
- Defined in:
- lib/formup/source.rb
#base(attr) ⇒ Object
22 23 24 25 |
# File 'lib/formup/source.rb', line 22 def base(attr) attr_def = @attribute_defs.detect { |attr_def| attr_def.attr == attr.to_s } attr_def ? attr_def.base : nil end |