bullet_train 1.6.18 → 1.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/account/application_controller.rb +16 -0
- data/app/controllers/application_controller.rb +8 -0
- data/app/models/application_hash.rb +6 -0
- data/app/models/application_record.rb +7 -0
- data/app/models/concerns/teams/base.rb +1 -3
- data/app/models/concerns/users/base.rb +1 -0
- data/lib/bullet_train/configuration.rb +1 -1
- data/lib/bullet_train/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a3ece5038e603d6e5aca257d5ce432f0045c5bbc251de0f41a1939ce17f7ee0
|
4
|
+
data.tar.gz: 0e17f29339d0a8e848fa84a3bc907b3bb663705a3b221c17e50fe81a8ccb0bf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
data/lib/bullet_train/version.rb
CHANGED
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.
|
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-
|
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
|