Class: EventMaterial
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- EventMaterial
- Includes:
- Toggleable
- Defined in:
- app/models/event_material.rb
Constant Summary collapse
- NAME_LIMIT =
250
Class Method Summary collapse
- .creation_parameters ⇒ Object
- .entity_parameters ⇒ Object
- .page_for_administration ⇒ Object
- .page_for_participants ⇒ Object
- .page_for_visitors ⇒ Object
Instance Method Summary collapse
Class Method Details
.creation_parameters ⇒ Object
37 38 39 |
# File 'app/models/event_material.rb', line 37 def self.creation_parameters entity_parameters + %i(event_id) end |
.entity_parameters ⇒ Object
33 34 35 |
# File 'app/models/event_material.rb', line 33 def self.entity_parameters %i(attachment name description show_on_page) end |
.page_for_administration ⇒ Object
21 22 23 |
# File 'app/models/event_material.rb', line 21 def self.page_for_administration ordered_by_name end |
.page_for_participants ⇒ Object
29 30 31 |
# File 'app/models/event_material.rb', line 29 def self.page_for_participants ordered_by_name end |
.page_for_visitors ⇒ Object
25 26 27 |
# File 'app/models/event_material.rb', line 25 def self.page_for_visitors for_main_page.ordered_by_name end |
Instance Method Details
#locked? ⇒ Boolean
41 42 43 |
# File 'app/models/event_material.rb', line 41 def locked? event.locked? end |