bullet_train 1.6.10 → 1.6.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9ede7c3b7c5f31927702dd9a8db7b78d2a95f1051e4cfcd2b697a5599750744
|
4
|
+
data.tar.gz: c6c28bc756440e12c9771551c5999c1fb3acab56cd872c411cd4374ff8d33ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1704b943db64789a350b3474621291bead022a82ebddcd249ce0213d80e3850c90d712a1460a6fdd3108021b6aa0265e151de9488dff634e4ed02688a303cc1a
|
7
|
+
data.tar.gz: 74bd322dcf0ed119bfcc83a146119a93f607f06ac1804be81a0f53f9b1423e771ab4773fd551f824c4fc32b35ee2e099b71bb8eb6a8908e60e4f1e8eef8912ed
|
@@ -16,8 +16,6 @@ module Memberships::Base
|
|
16
16
|
has_many :scaffolding_completely_concrete_tangible_things_assignments, class_name: "Scaffolding::CompletelyConcrete::TangibleThings::Assignment", dependent: :destroy
|
17
17
|
has_many :scaffolding_completely_concrete_tangible_things, through: :scaffolding_completely_concrete_tangible_things_assignments, source: :tangible_thing
|
18
18
|
|
19
|
-
has_many :scaffolding_absolutely_abstract_creative_concepts_collaborators, class_name: "Scaffolding::AbsolutelyAbstract::CreativeConcepts::Collaborator", dependent: :destroy
|
20
|
-
|
21
19
|
# Image uploading
|
22
20
|
has_one_attached :user_profile_photo
|
23
21
|
|
@@ -20,7 +20,6 @@ module Users::Base
|
|
20
20
|
|
21
21
|
# teams
|
22
22
|
has_many :memberships, dependent: :destroy
|
23
|
-
has_many :scaffolding_absolutely_abstract_creative_concepts_collaborators, through: :memberships
|
24
23
|
has_many :teams, through: :memberships
|
25
24
|
has_many :collaborating_users, through: :teams, source: :users
|
26
25
|
belongs_to :current_team, class_name: "Team", optional: true
|
@@ -144,22 +143,6 @@ module Users::Base
|
|
144
143
|
RQRCode::QRCode.new(otp_provisioning_uri(label, issuer: issuer))
|
145
144
|
end
|
146
145
|
|
147
|
-
def scaffolding_absolutely_abstract_creative_concepts_collaborators
|
148
|
-
Scaffolding::AbsolutelyAbstract::CreativeConcepts::Collaborator.joins(:membership).where(membership: {user_id: id})
|
149
|
-
end
|
150
|
-
|
151
|
-
def admin_scaffolding_absolutely_abstract_creative_concepts_ids
|
152
|
-
scaffolding_absolutely_abstract_creative_concepts_collaborators.admins.pluck(:creative_concept_id)
|
153
|
-
end
|
154
|
-
|
155
|
-
def editor_scaffolding_absolutely_abstract_creative_concepts_ids
|
156
|
-
scaffolding_absolutely_abstract_creative_concepts_collaborators.editors.pluck(:creative_concept_id)
|
157
|
-
end
|
158
|
-
|
159
|
-
def viewer_scaffolding_absolutely_abstract_creative_concepts_ids
|
160
|
-
scaffolding_absolutely_abstract_creative_concepts_collaborators.viewers.pluck(:creative_concept_id)
|
161
|
-
end
|
162
|
-
|
163
146
|
def developer?
|
164
147
|
return false unless ENV["DEVELOPER_EMAILS"]
|
165
148
|
# we use email_was so they can't try setting their email to the email of an admin.
|
@@ -72,7 +72,7 @@ What if you'd instead want to:
|
|
72
72
|
|
73
73
|
* Not rely on a custom Stimulus controller to control the `disabled` state of the "Other" field
|
74
74
|
* Show/hide multiple dependent fields based on the value of the `dependable` field.
|
75
|
-
* Update more than the field itself, but also the value of its `label`. As an example, the [`address_field`](/docs/field-partials/address-field.md) partial shows an empty "State / Province / Region" sub-field by default, and on changing the `:country_id` field to the United States, changes the whole `:region_id` to "State" as its label and with all US States as its choices.
|
75
|
+
* Update more than the field itself, but also the value of its `label`. As an example, the [`address_field`](/docs/field-partials/address-field.md) partial shows an empty "State / Province / Region" sub-field by default, and on changing the `:country_id` field to the United States, changes the whole `:region_id` to "State or Territory" as its label and with all US States and territories as its choices.
|
76
76
|
|
77
77
|
For these situations, Bullet Train has a `dependent_fields_frame` partial that's made to listen to `dependable:updated` events by default.
|
78
78
|
|
@@ -120,4 +120,4 @@ We'll move the conditional on the `disabled` property. And we'll also let the `d
|
|
120
120
|
<% end %>
|
121
121
|
```
|
122
122
|
|
123
|
-
To learn more about its inner functionality, search the `bullet-train-core` repo for `dependable_controller.js`, `dependent_fields_frame_controller.js` and `_dependent_fields_frame.html.erb`. You can also see an implementation by looking at the `_address_field.html.erb` partial.
|
123
|
+
To learn more about its inner functionality, search the `bullet-train-core` repo for `dependable_controller.js`, `dependent_fields_frame_controller.js` and `_dependent_fields_frame.html.erb`. You can also see an implementation by looking at the `_address_field.html.erb` partial.
|
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.12
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|