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.20.6'.freeze
Class Method Summary collapse
- .categories ⇒ Object
- .config_keys ⇒ Object
-
.delayed? ⇒ Boolean
If we can create delayed payment events at all.
- .EventRegistration ⇒ Object
- .mailer_class ⇒ Object
- .organization_enabled? ⇒ Boolean
Class Method Details
.categories ⇒ Object
28 29 30 |
# File 'lib/effective_events.rb', line 28 def self.categories Array(config[:categories]) - [nil, false, ''] end |
.config_keys ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/effective_events.rb', line 7 def self.config_keys [ :events_table_name, :event_registrants_table_name, :event_tickets_table_name, :event_ticket_selections_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, :organization_enabled, :create_users, :company_or_organization_required, :event_registration_class_name ] end |
.delayed? ⇒ Boolean
If we can create delayed payment events at all
38 39 40 |
# File 'lib/effective_events.rb', line 38 def self.delayed? !!EffectiveOrders.try(:delayed?) end |
.EventRegistration ⇒ Object
20 21 22 |
# File 'lib/effective_events.rb', line 20 def self.EventRegistration event_registration_class_name&.constantize || Effective::EventRegistration end |
.mailer_class ⇒ Object
24 25 26 |
# File 'lib/effective_events.rb', line 24 def self.mailer_class mailer&.constantize || Effective::EventsMailer end |
.organization_enabled? ⇒ Boolean
32 33 34 35 |
# File 'lib/effective_events.rb', line 32 def self.organization_enabled? raise('missing the effective_memberships gem') if organization_enabled && !defined?(EffectiveMemberships) organization_enabled == true end |