bullet_train 1.6.18 → 1.6.19

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: ea147f6053a7a84921b1f9a4557c272c972e7633eacdde1164c27770e9175ccd
4
+ data.tar.gz: bfe5ec8104ff220c968767a0cd3f41ba1f2f4a41605b4f4e39c7ccbc70f9f10b
5
5
  SHA512:
6
- metadata.gz: f2438c738c6013a63d3eb9a3aafcb5acb0853dd92c3f5683c18390489a61add8b6ee774e36b32acdd660e55d3b9d9d898160a9d1380ffb0deaa82ca4b5754e67
7
- data.tar.gz: 7ecf4599d295559267df2e021bd1cbcc568b18d75f83a8b39038a1e525946b1d788dd27cbe3ace6c73d0ba81c665c1e8afe806dc38a630d85266d8f2c025722b
6
+ metadata.gz: 8b6ce8fc6b6594f36f4c0a2b3173ce2f1944823e1d0f11025d212cbdc10573d848185975fad793a880d44d754b767d72f701ee68b4263486a97376bad1090941
7
+ data.tar.gz: acb43ae1f2bf3e25ee74a087a2c9976e26cc371823cc3d16391a7cad10cc0681211b884b33ec8fde9572a5bc30f8819701fb222ddd6e4711a590250846fb5c92
@@ -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
@@ -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.19"
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.19
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-22 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