Class: Biovision::Components::ContentComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Biovision::Components::ContentComponent
- Defined in:
- app/lib/biovision/components/content_component.rb
Overview
Content
Instance Attribute Summary
Attributes inherited from BaseComponent
#component, #name, #slug, #user, #user_link
Class Method Summary collapse
Instance Method Summary collapse
- #administrative_parts ⇒ Object
- #crud_table_names ⇒ Object
- #navigation ⇒ Object
- #use_images? ⇒ Boolean
- #use_parameters? ⇒ Boolean
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?, #user_link!
Methods included from Base::ComponentSettings
#default_settings, #normalize_settings, #reset_settings, #settings_flags, #settings_numbers, #settings_strings
Methods included from Base::EntityLinks
Methods included from Base::ComponentParameters
#[], #[]=, #manage_settings?, #receive
Methods included from Base::ComponentPrivileges
#create_roles, #model_from_context, #owner?, #permit?, #role?, #role_tree
Constructor Details
This class inherits a constructor from Biovision::Components::BaseComponent
Class Method Details
.dependent_models ⇒ Object
7 8 9 |
# File 'app/lib/biovision/components/content_component.rb', line 7 def self.dependent_models [DynamicPage, , , DynamicBlock] end |
Instance Method Details
#administrative_parts ⇒ Object
23 24 25 |
# File 'app/lib/biovision/components/content_component.rb', line 23 def administrative_parts %w[navigation_groups dynamic_blocks dynamic_pages] end |
#crud_table_names ⇒ Object
19 20 21 |
# File 'app/lib/biovision/components/content_component.rb', line 19 def crud_table_names super - %w[navigation_group_pages] end |
#navigation ⇒ Object
27 28 29 |
# File 'app/lib/biovision/components/content_component.rb', line 27 def ||= end |
#use_images? ⇒ Boolean
15 16 17 |
# File 'app/lib/biovision/components/content_component.rb', line 15 def use_images? true end |
#use_parameters? ⇒ Boolean
11 12 13 |
# File 'app/lib/biovision/components/content_component.rb', line 11 def use_parameters? true end |