Sha256: 27e50647236a49073e75f02d13ebed048d04d20f5bf35eef4ad9ad64e301fcc4
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
require 'effective_resources' require 'effective_events/engine' require 'effective_events/version' module EffectiveEvents 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_registrant_required_fields, :event_registration_class_name ] end include EffectiveGem def self.EventRegistration event_registration_class_name&.constantize || Effective::EventRegistration end def self.mailer_class mailer&.constantize || Effective::EventsMailer end def categories Array(config[:categories]) - [nil, false, ''] end def event_registrant_required_fields (Array(config[:event_registrant_required_fields]) - [nil, false, '']).map(&:to_sym) end end
Version data entries
4 entries across 4 versions & 1 rubygems