bullet_train 1.3.9 → 1.3.10

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: 2a592a4bc498de3b8d6b8259ddd5b78c53ea3372bd7f7e2935e2c57f93ea2e55
4
- data.tar.gz: d6a902dc8ccb449058809cbc5d991dc1f202f20af458a6253e84177d7958c5da
3
+ metadata.gz: 367afc5adafaf83cacca910e8ac20da989953ac282dac2dbff3664e99debb4b3
4
+ data.tar.gz: 3d7476659c6668da6976f3f5d2767ffa2f3af62d6652cf5d2ce54de450cfce2a
5
5
  SHA512:
6
- metadata.gz: 0a7e8e9478edc9783010fb1b4b15f9a422fe40e3516652a606b47a20e7d9cc7cdedc090dac1f216a8374ab96ec7b05afaaa2371049ee2ddde60ebddb7b266536
7
- data.tar.gz: beddc2048f31611075a3a37c5087a1ddbd5201b8755cc78893d922b42c06bdc4cfaa21bd9dddd8d840047163edb5ab3a8426fcca5128fd5ca4c8ff70828aafaa
6
+ metadata.gz: 1ee14729e078f27486c9f39ca35a24515ae206e5fe7c04d7b722af3c75f6c97dcb72a7be41e782d2a6c8d6bc4378db6e5b78a2ae1542b860898afc924b866e9e
7
+ data.tar.gz: 7147b9f3b76b47103ed03fbe63645e7772c2fd3b8c9222b2bb4f2f2dcf7ea51aa3908cbf96013da76e68b394f9d551967cf506079189fc8603895d16dfd4910c
@@ -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
- _: &name Full Name
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:
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.3.9"
2
+ VERSION = "1.3.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver