houdini/gems/bess/lib/houdini.rb

48 lines
1.2 KiB
Ruby
Raw Normal View History

# frozen_string_literal: true
2020-06-12 20:03:43 +00:00
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
module Houdini
2020-06-10 22:31:47 +00:00
extend ActiveSupport::Autoload
autoload :Ccs
autoload :Maintenance
autoload :Intl
autoload :PaymentProvider
2020-06-12 18:03:59 +00:00
autoload :EventPublisher
autoload :WebhookAdapter
autoload :NonprofitCreation
autoload :Hoster
autoload :EngineInitializers
2020-06-10 22:31:47 +00:00
mattr_accessor :intl, :maintenance, :ccs
mattr_accessor :general, default: {}
mattr_accessor :defaults, default: {}
mattr_accessor :payment_providers, default: {}
mattr_accessor :maps, default: {}
mattr_accessor :default_bp, default: {}
mattr_accessor :page_editor, default: {}
mattr_accessor :source_tokens, default: {}
mattr_accessor :show_state_field, default: true
2020-06-10 22:31:47 +00:00
mattr_accessor :nonprofits_must_be_vetted, default: false
mattr_accessor :button_host
mattr_accessor :hoster, default: Houdini::Hoster
2020-06-11 18:28:02 +00:00
mattr_accessor :core_classes, default: {supporter: 'Supporter', nonprofit: 'Nonprofit'}
2020-06-12 18:03:59 +00:00
mattr_accessor :event_publisher, default: Houdini::EventPublisher.new
end
# need to have Houdini loaded first before we can add engine
require "houdini/engine"