Class: Biovision::Components::ContactComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Biovision::Components::ContactComponent
- Defined in:
- app/lib/biovision/components/contact_component.rb
Overview
Contact and feedback
Constant Summary collapse
- SETTING_FEEDBACK_MAIL =
'feedback_email'
Instance Attribute Summary
Attributes inherited from BaseComponent
#component, #name, #slug, #user
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseComponent
[], active?, create, #data_value, #find_or_create_code, form_options, handler, handler_class, #initialize, #new_entity, #register_metric, #settings, #settings=, slug, #update_data_value, #update_entity, #use_settings?
Methods included from Base::ComponentSettings
#default_settings, #normalize_settings, #reset_settings, #settings_flags, #settings_numbers, #settings_strings
Methods included from Base::ImageHandling
Methods included from Base::EntityLinks
#entity_link, #rest_entity_link, #text_for_link
Methods included from Base::ComponentParameters
#[], #[]=, #manage_settings?, #receive, #use_files?
Methods included from Base::ComponentPrivileges
#administrative_parts, #create_roles, #crud_table_names, #model_from_context, #owner?, #permit?, #role?, #role_tree
Constructor Details
This class inherits a constructor from Biovision::Components::BaseComponent
Class Method Details
.default_settings ⇒ Object
13 14 15 |
# File 'app/lib/biovision/components/contact_component.rb', line 13 def self.default_settings { SETTING_FEEDBACK_MAIL => '' } end |
.dependent_models ⇒ Object
17 18 19 |
# File 'app/lib/biovision/components/contact_component.rb', line 17 def self.dependent_models [FeedbackMessage, FeedbackResponse, ContactType, ContactMethod] end |
.settings_strings ⇒ Object
9 10 11 |
# File 'app/lib/biovision/components/contact_component.rb', line 9 def self.settings_strings [SETTING_FEEDBACK_MAIL] end |
Instance Method Details
#use_parameters? ⇒ Boolean
21 22 23 |
# File 'app/lib/biovision/components/contact_component.rb', line 21 def use_parameters? true end |