Sha256: a1581b273f11958b9491390bb25770960385254779b8cbc6c48c76a3e24b7329

Contents?: true

Size: 699 Bytes

Versions: 30

Compression:

Stored size: 699 Bytes

Contents

module BulletTrain
  class Configuration
    include Singleton
    attr_accessor :strong_passwords, :enable_bulk_invitations, :incoming_webhooks_parent_class_name

    @@config = nil

    def initialize
      @@config = self

      # Default values
      @strong_passwords = true
      @enable_bulk_invitations = false
      @incoming_webhooks_parent_class_name = "ApplicationRecord"
    end

    class << self
      def strong_passwords
        @@config&.strong_passwords
      end

      def enable_bulk_invitations
        @@config&.enable_bulk_invitations
      end

      def incoming_webhooks_parent_class_name
        @@config&.incoming_webhooks_parent_class_name
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
bullet_train-1.6.18 lib/bullet_train/configuration.rb
bullet_train-1.6.17 lib/bullet_train/configuration.rb
bullet_train-1.6.16 lib/bullet_train/configuration.rb
bullet_train-1.6.15 lib/bullet_train/configuration.rb
bullet_train-1.6.14 lib/bullet_train/configuration.rb
bullet_train-1.6.13 lib/bullet_train/configuration.rb
bullet_train-1.6.12 lib/bullet_train/configuration.rb
bullet_train-1.6.11 lib/bullet_train/configuration.rb
bullet_train-1.6.10 lib/bullet_train/configuration.rb
bullet_train-1.6.9 lib/bullet_train/configuration.rb
bullet_train-1.6.8 lib/bullet_train/configuration.rb
bullet_train-1.6.7 lib/bullet_train/configuration.rb
bullet_train-1.6.6 lib/bullet_train/configuration.rb
bullet_train-1.6.5 lib/bullet_train/configuration.rb
bullet_train-1.6.4 lib/bullet_train/configuration.rb
bullet_train-1.6.3 lib/bullet_train/configuration.rb
bullet_train-1.6.2 lib/bullet_train/configuration.rb
bullet_train-1.6.1 lib/bullet_train/configuration.rb
bullet_train-1.6.0 lib/bullet_train/configuration.rb
bullet_train-1.5.2 lib/bullet_train/configuration.rb