lib/bullet_train/configuration.rb in bullet_train-1.3.14 vs lib/bullet_train/configuration.rb in bullet_train-1.3.15
- old
+ new
@@ -1,21 +1,26 @@
module BulletTrain
class Configuration
include Singleton
- attr_accessor :strong_passwords
+ attr_accessor :strong_passwords, :incoming_webhooks_parent_class_name
@@config = nil
def initialize
@@config = self
# Default values
@strong_passwords = true
+ @incoming_webhooks_parent_class_name = "ApplicationRecord"
end
class << self
def strong_passwords
@@config&.strong_passwords
+ end
+
+ def incoming_webhooks_parent_class_name
+ @@config&.incoming_webhooks_parent_class_name
end
end
end
end