bullet_train 1.3.9 → 1.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/records/base.rb +2 -16
- data/config/locales/en/memberships.en.yml +35 -1
- data/docs/application-options.md +2 -1
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e978873b55ca6a15b2b500915937a0eaa092d9bc5a8a8b2f8dc1f10d6ac27f7
|
4
|
+
data.tar.gz: 8756fd456af1bc3f70429c78234175e00d28fbefe04fa9253182831fefb084a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9988ba16cd8b3c98161e4ba478e97f93b87152211592c93b62f4ba898fd6131e3a6abfd3190e0975a9e7ab1bef9fb53b3c0e783d481823dd0e37423fa44f4845
|
7
|
+
data.tar.gz: 42f98d7b289251a81263282265b307e4f3901e8e5379c7b95f4ba4451318e1aa4b9f9b99a1b96a75c0e9aa4ee3cd2afd5c4b82896705e3542bbe63d13b9a0f01
|
@@ -20,6 +20,8 @@ module Records::Base
|
|
20
20
|
include QuestionMethodsFromScopes
|
21
21
|
end
|
22
22
|
|
23
|
+
include BulletTrain::Api::Attributes
|
24
|
+
|
23
25
|
include CableReady::Updatable
|
24
26
|
enable_cable_ready_updates
|
25
27
|
|
@@ -76,21 +78,5 @@ module Records::Base
|
|
76
78
|
Rake::Task.task_defined?("db:seed") && Rake::Task["db:seed"].already_invoked
|
77
79
|
end
|
78
80
|
|
79
|
-
# TODO This should really be in the API package and included from there.
|
80
|
-
if defined?(BulletTrain::Api)
|
81
|
-
# We default this to the current version of the API, but developers can request a specific version.
|
82
|
-
def to_api_json(api_version = BulletTrain::Api.current_version_numeric)
|
83
|
-
controller = "Api::V#{api_version}::ApplicationController".constantize.new
|
84
|
-
# TODO We need to fix host names here.
|
85
|
-
controller.request = ActionDispatch::Request.new({})
|
86
|
-
local_class_key = self.class.name.underscore.split("/").last.to_sym
|
87
|
-
|
88
|
-
# Returns a hash, not string.
|
89
|
-
JbuilderTemplate.new(controller.view_context) do |json|
|
90
|
-
json.partial! "api/#{BulletTrain::Api.current_version}/#{self.class.name.underscore.pluralize}/#{local_class_key}", local_class_key => self
|
91
|
-
end.attributes!
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
81
|
ActiveSupport.run_load_hooks :bullet_train_records_base, self
|
96
82
|
end
|
@@ -22,21 +22,49 @@ en:
|
|
22
22
|
destroy_own: Are you sure you want to remove yourself from %{team_name}? You won't be able to undo this.
|
23
23
|
reinvite: Are you sure you want to re-invite %{membership_name} to %{team_name}?
|
24
24
|
fields: &fields
|
25
|
+
id:
|
26
|
+
_: &id Membership ID
|
27
|
+
label: *id
|
28
|
+
heading: *id
|
29
|
+
user_id:
|
30
|
+
name: &user_id User ID
|
31
|
+
heading: *user_id
|
32
|
+
team_id:
|
33
|
+
name: &team_id Team ID
|
34
|
+
heading: *team_id
|
35
|
+
invitation_id:
|
36
|
+
name: &invitation_id Invitation ID
|
37
|
+
heading: *invitation_id
|
25
38
|
name:
|
26
|
-
|
39
|
+
name: &name Full Name
|
27
40
|
heading: *name
|
28
41
|
user_first_name:
|
29
42
|
name: &user_first_name First Name
|
30
43
|
label: *user_first_name
|
44
|
+
heading: *user_first_name
|
31
45
|
user_last_name:
|
32
46
|
name: &user_last_name Last Name
|
33
47
|
label: *user_last_name
|
48
|
+
heading: *user_last_name
|
34
49
|
user_profile_photo_id:
|
35
50
|
name: &user_profile_photo_id Profile Photo
|
36
51
|
label: *user_profile_photo_id
|
37
52
|
user_profile_photo:
|
38
53
|
name: &user_profile_photo Profile Photo
|
39
54
|
label: *user_profile_photo
|
55
|
+
heading: *user_profile_photo_id
|
56
|
+
user_email:
|
57
|
+
name: &user_email User Email
|
58
|
+
heading: *user_email
|
59
|
+
added_by_id:
|
60
|
+
name: &added_by_id Added by User ID
|
61
|
+
heading: *added_by_id
|
62
|
+
platform_agent_of_id:
|
63
|
+
name: &platform_agent_of_id Platform Agent of ID
|
64
|
+
heading: *platform_agent_of_id
|
65
|
+
platform_agent:
|
66
|
+
name: &platform_agent Platform Agent
|
67
|
+
heading: *platform_agent
|
40
68
|
role_ids:
|
41
69
|
name: &roles Special Privileges
|
42
70
|
label: *roles
|
@@ -52,6 +80,12 @@ en:
|
|
52
80
|
label: Editor
|
53
81
|
description: Can edit all resources on this team and allow others to do the same.
|
54
82
|
none: Viewer
|
83
|
+
created_at:
|
84
|
+
_: &created_at Created At
|
85
|
+
heading: *created_at
|
86
|
+
updated_at:
|
87
|
+
_: &updated_at Updated At
|
88
|
+
heading: *updated_at
|
55
89
|
index:
|
56
90
|
section: "%{team_name} Team Members"
|
57
91
|
contexts:
|
data/docs/application-options.md
CHANGED
@@ -13,5 +13,6 @@ The following configuration options are available for your Bullet Train applicat
|
|
13
13
|
| `OPENAI_ACCESS_TOKEN` | Enable OpenAI-powered UX improvements | `sk-Tnko8PI15i6du03KkxVExTz3lbkFJV...` | `openai_enabled?` |
|
14
14
|
| `REDOCLY_ORGANIZATION_ID` | Enable Redocly-powered API documentation | `your-organization-name` | |
|
15
15
|
| `REDOCLY_API_KEY` | Enable Redocly-powered API documentation |`orgsk_lfyrXAAym8nbSrar9b8wvTN+...`| |
|
16
|
+
| `DISABLE_DEVELOPER_MENU` | Disable the `developer` tab in the navigation bar | `true` | disable_developer_menu? |
|
16
17
|
|
17
|
-
<sup><a name="footnote-1"></a>1</sup> Any credentials listed here aren't real, but we wanted you to know what each looks like so you can recognize the correct value from each provider.
|
18
|
+
<sup><a name="footnote-1"></a>1</sup> Any credentials listed here aren't real, but we wanted you to know what each looks like so you can recognize the correct value from each provider.
|
data/lib/bullet_train/version.rb
CHANGED
data/lib/bullet_train.rb
CHANGED