Sha256: 2aab3e9502edc4557cfec80f5939b44a8eb0216874c29ad2ba066cccc63f0925

Contents?: true

Size: 904 Bytes

Versions: 19

Compression:

Stored size: 904 Bytes

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_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

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
effective_events-0.16.0 lib/effective_events.rb
effective_events-0.15.1 lib/effective_events.rb
effective_events-0.15.0 lib/effective_events.rb
effective_events-0.14.2 lib/effective_events.rb
effective_events-0.14.1 lib/effective_events.rb
effective_events-0.14.0 lib/effective_events.rb
effective_events-0.13.1 lib/effective_events.rb
effective_events-0.13.0 lib/effective_events.rb
effective_events-0.11.3 lib/effective_events.rb
effective_events-0.11.2 lib/effective_events.rb
effective_events-0.11.1 lib/effective_events.rb
effective_events-0.11.0 lib/effective_events.rb
effective_events-0.10.2 lib/effective_events.rb
effective_events-0.10.1 lib/effective_events.rb
effective_events-0.10.0 lib/effective_events.rb
effective_events-0.9.3 lib/effective_events.rb
effective_events-0.9.2 lib/effective_events.rb
effective_events-0.9.1 lib/effective_events.rb
effective_events-0.9.0 lib/effective_events.rb