bullet_train 1.6.18 → 1.6.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 310c2fd2d806f33ad784bc31521958f8aee653fd75014758d85a5e44e879d9b7
4
- data.tar.gz: a33103246ad907493da265059c80e17b4d6f195a4193b9d54a0ea4b01905ecdc
3
+ metadata.gz: 5a3ece5038e603d6e5aca257d5ce432f0045c5bbc251de0f41a1939ce17f7ee0
4
+ data.tar.gz: 0e17f29339d0a8e848fa84a3bc907b3bb663705a3b221c17e50fe81a8ccb0bf0
5
5
  SHA512:
6
- metadata.gz: f2438c738c6013a63d3eb9a3aafcb5acb0853dd92c3f5683c18390489a61add8b6ee774e36b32acdd660e55d3b9d9d898160a9d1380ffb0deaa82ca4b5754e67
7
- data.tar.gz: 7ecf4599d295559267df2e021bd1cbcc568b18d75f83a8b39038a1e525946b1d788dd27cbe3ace6c73d0ba81c665c1e8afe806dc38a630d85266d8f2c025722b
6
+ metadata.gz: ec198febe32f8bdcb4106700449e00a2675e7d5f1fafe335cb1ab4eaec730c3564243d03eb98ae469f6a527a4fe9670209f630a68162065cc629c111f5cee3b4
7
+ data.tar.gz: 0a6a44155311866bc63044ff5f793064708806e27a1d453aa5a249fb794dd0771f2eb645331f3bb019949f5fb93d252e9587dd92a55e5605cb617b1bc1ef720e
@@ -0,0 +1,16 @@
1
+ class Account::ApplicationController < ApplicationController
2
+ include Account::Controllers::Base
3
+
4
+ def ensure_onboarding_is_complete
5
+ # First check that Bullet Train doesn't have any onboarding steps it needs to enforce.
6
+ return false unless super
7
+
8
+ # Most onboarding steps you'll add should be skipped if the user is adding a team or accepting an invitation ...
9
+ unless adding_team? || accepting_invitation?
10
+ # So, if you have new onboarding steps to check for an enforce, do that here:
11
+ end
12
+
13
+ # Finally, if we've gotten this far, then onboarding appears to be complete!
14
+ true
15
+ end
16
+ end
@@ -0,0 +1,8 @@
1
+ # This is a default implementation of this file that we supply to help with gem tests.
2
+ # The version from the starter repo will take precedence when running the full app.
3
+ # You can think of the file in the starter repo as having been ejected from this gem.
4
+ class ApplicationController < ActionController::Base
5
+ include Controllers::Base
6
+
7
+ protect_from_forgery with: :exception, prepend: true
8
+ end
@@ -0,0 +1,6 @@
1
+ # This is a default implementation of this file that we supply to help with gem tests.
2
+ # The version from the starter repo will take precedence when running the full app.
3
+ # You can think of the file in the starter repo as having been ejected from this gem.
4
+ class ApplicationHash < ActiveHash::Base
5
+ include ActiveHash::Associations
6
+ end
@@ -0,0 +1,7 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ primary_abstract_class
3
+
4
+ # Bullet Train includes a lot of functionality in each model by default.
5
+ # If you want to avoid this for specific models, consider inheriting from `ActiveRecord::Base` directly.
6
+ include Records::Base
7
+ end
@@ -3,9 +3,7 @@ module Teams::Base
3
3
 
4
4
  included do
5
5
  # super scaffolding
6
- unless scaffolding_things_disabled?
7
- has_many :scaffolding_absolutely_abstract_creative_concepts, class_name: "Scaffolding::AbsolutelyAbstract::CreativeConcept", dependent: :destroy, enable_cable_ready_updates: true
8
- end
6
+ has_many :scaffolding_absolutely_abstract_creative_concepts, class_name: "Scaffolding::AbsolutelyAbstract::CreativeConcept", dependent: :destroy, enable_cable_ready_updates: true
9
7
 
10
8
  # added_by_id is a foreign_key to other Memberships on the same team,
11
9
  # so we nullify this to remove the constraint to delete the team.
@@ -2,6 +2,7 @@ module Users::Base
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
+ extend Devise::Models
5
6
  attr_accessor :profile_photo_removal
6
7
 
7
8
  if two_factor_authentication_enabled?
@@ -24,7 +24,7 @@ module BulletTrain
24
24
  end
25
25
 
26
26
  def incoming_webhooks_parent_class_name
27
- @@config&.incoming_webhooks_parent_class_name
27
+ @@config&.incoming_webhooks_parent_class_name || "ApplicationRecord"
28
28
  end
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.6.18"
2
+ VERSION = "1.6.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.18
4
+ version: 1.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-21 00:00:00.000000000 Z
11
+ date: 2023-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -511,6 +511,7 @@ files:
511
511
  - MIT-LICENSE
512
512
  - Rakefile
513
513
  - app/assets/config/bullet_train_manifest.js
514
+ - app/controllers/account/application_controller.rb
514
515
  - app/controllers/account/invitations_controller.rb
515
516
  - app/controllers/account/memberships_controller.rb
516
517
  - app/controllers/account/onboarding/invitation_lists_controller.rb
@@ -519,6 +520,7 @@ files:
519
520
  - app/controllers/account/teams_controller.rb
520
521
  - app/controllers/account/two_factors_controller.rb
521
522
  - app/controllers/account/users_controller.rb
523
+ - app/controllers/application_controller.rb
522
524
  - app/controllers/concerns/account/controllers/base.rb
523
525
  - app/controllers/concerns/account/invitations/controller_base.rb
524
526
  - app/controllers/concerns/account/memberships/controller_base.rb
@@ -576,6 +578,8 @@ files:
576
578
  - app/models/addresses/country.rb
577
579
  - app/models/addresses/region.rb
578
580
  - app/models/addresses/subcontinent.rb
581
+ - app/models/application_hash.rb
582
+ - app/models/application_record.rb
579
583
  - app/models/billing/mock_limiter.rb
580
584
  - app/models/concerns/account/onboarding/invitation_lists/base.rb
581
585
  - app/models/concerns/addresses/base.rb