Class: BrainDamage::View::Autocompletable::Base
- Inherits:
-
Base::Base
- Object
- Templateable::Base
- Templateable::ViewTemplateable
- Base::Base
- BrainDamage::View::Autocompletable::Base
- Defined in:
- lib/generators/brain_damage/lib/views/schemas/autocompletable/base.rb
Constant Summary
Constants inherited from Templateable::ViewTemplateable
Templateable::ViewTemplateable::OVERWRITEABLE_HEADER
Instance Attribute Summary
Attributes inherited from Base::Base
Attributes inherited from Templateable::Base
#inner_html, #options, #template_file
Instance Method Summary collapse
Methods inherited from Base::Base
#fields, has_template?, #infer_file_name, #initialize, #is_partial_file_name?, #method_missing, #partialize_file_name, #set_file_and_template_names
Methods inherited from Templateable::ViewTemplateable
overwrite?, #render, skip_overwrite?
Methods inherited from Templateable::Base
#indent, #initialize, #method_missing, #render, #render_erb_file, #render_erb_string, #render_template_file
Constructor Details
This class inherits a constructor from BrainDamage::View::Base::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BrainDamage::View::Base::Base
Instance Method Details
#display_method ⇒ Object
7 8 9 |
# File 'lib/generators/brain_damage/lib/views/schemas/autocompletable/base.rb', line 7 def display_method @options[:display_method] || :name end |
#value_method ⇒ Object
11 12 13 |
# File 'lib/generators/brain_damage/lib/views/schemas/autocompletable/base.rb', line 11 def value_method @options[:value_method] || :id end |