Class: BulletTrain::Configuration
- Inherits:
-
Object
- Object
- BulletTrain::Configuration
- Includes:
- Singleton
- Defined in:
- lib/bullet_train/configuration.rb
Constant Summary collapse
- @@config =
nil
Instance Attribute Summary collapse
-
#enable_bulk_invitations ⇒ Object
Returns the value of attribute enable_bulk_invitations.
-
#incoming_webhooks_parent_class_name ⇒ Object
Returns the value of attribute incoming_webhooks_parent_class_name.
-
#strong_passwords ⇒ Object
Returns the value of attribute strong_passwords.
Class Method Summary collapse
- .enable_bulk_invitations ⇒ Object
- .incoming_webhooks_parent_class_name ⇒ Object
- .strong_passwords ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 |
# File 'lib/bullet_train/configuration.rb', line 9 def initialize @@config = self # Default values @strong_passwords = true @enable_bulk_invitations = false @incoming_webhooks_parent_class_name = "ApplicationRecord" end |
Instance Attribute Details
#enable_bulk_invitations ⇒ Object
Returns the value of attribute enable_bulk_invitations.
5 6 7 |
# File 'lib/bullet_train/configuration.rb', line 5 def enable_bulk_invitations @enable_bulk_invitations end |
#incoming_webhooks_parent_class_name ⇒ Object
Returns the value of attribute incoming_webhooks_parent_class_name.
5 6 7 |
# File 'lib/bullet_train/configuration.rb', line 5 def incoming_webhooks_parent_class_name @incoming_webhooks_parent_class_name end |
#strong_passwords ⇒ Object
Returns the value of attribute strong_passwords.
5 6 7 |
# File 'lib/bullet_train/configuration.rb', line 5 def strong_passwords @strong_passwords end |
Class Method Details
.enable_bulk_invitations ⇒ Object
23 24 25 |
# File 'lib/bullet_train/configuration.rb', line 23 def enable_bulk_invitations @@config&.enable_bulk_invitations end |
.incoming_webhooks_parent_class_name ⇒ Object
27 28 29 |
# File 'lib/bullet_train/configuration.rb', line 27 def incoming_webhooks_parent_class_name @@config&.incoming_webhooks_parent_class_name || "ApplicationRecord" end |
.strong_passwords ⇒ Object
19 20 21 |
# File 'lib/bullet_train/configuration.rb', line 19 def strong_passwords @@config&.strong_passwords end |