Method: Formup::ClassMethods#source
- Defined in:
- lib/formup.rb
#source(key, options = {}) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/formup.rb', line 26 def source(key, ={}) initialize_sources attribute_defs = create_attribute_defs(key, [:attributes], [:aliases]) @sources[key] = Formup::Source.new(key, attribute_defs) deploy_attributes(attribute_defs) end |