Module: EffectiveEvents
- Includes:
- EffectiveGem
- Defined in:
- lib/effective_events.rb,
lib/effective_events/engine.rb,
lib/effective_events/version.rb,
lib/generators/effective_events/install_generator.rb
Defined Under Namespace
Modules: Generators Classes: Engine
Constant Summary collapse
- VERSION =
'0.11.3'.freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.config_keys ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/effective_events.rb', line 7 def self.config_keys [ :events_table_name, :event_registrants_table_name, :event_tickets_table_name, :event_registrations_table_name, :event_products_table_name, :event_addons_table_name, :event_notifications_table_name, :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject, :layout, :per_page, :use_effective_roles, :categories, :events_hint_text, :event_registration_class_name ] end |
.EventRegistration ⇒ Object
19 20 21 |
# File 'lib/effective_events.rb', line 19 def self.EventRegistration event_registration_class_name&.constantize || Effective::EventRegistration end |
.mailer_class ⇒ Object
23 24 25 |
# File 'lib/effective_events.rb', line 23 def self.mailer_class mailer&.constantize || Effective::EventsMailer end |
Instance Method Details
#categories ⇒ Object
27 28 29 |
# File 'lib/effective_events.rb', line 27 def categories Array(config[:categories]) - [nil, false, ''] end |