lib/bullet_train/configuration.rb in bullet_train-1.2.27 vs lib/bullet_train/configuration.rb in bullet_train-1.3.0

- old
+ new

@@ -1,15 +1,21 @@ module BulletTrain class Configuration + include Singleton attr_accessor :strong_passwords - @default = Configuration.new + @@config = nil def initialize - self.strong_passwords = true + @@config = self + + # Default values + @strong_passwords = true end class << self - attr_reader :default + def strong_passwords + @@config&.strong_passwords + end end end end