bullet_train-super_scaffolding 1.3.1 → 1.3.3

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: a8e5e32207c988c436d848ab41a93339fba61fbb17c065d24d3c8822050affb5
4
- data.tar.gz: 21ac7765900f3bdcb214e1f2c63807896711ab2f0f86e5a84e42db509d6ddb20
3
+ metadata.gz: edf7a8d1588079e73ae6bd8a24b785c0643eb358eafbcb6f43714f55e45e00a9
4
+ data.tar.gz: 9df2b8dec75a472180bb60924b61a12db53e628b6976710e382500cc3dc93470
5
5
  SHA512:
6
- metadata.gz: 0bbc9b4af52a97721255fbe9b6bdd039fc83e653ef8bde588aaf3b5eb95d7687727948f0b2fc239df2e02a504437e12c10b5099e55a117c3fa1c6baee9358fcd
7
- data.tar.gz: e82cb2c1ea70947a6d598435daefdaec75869ff7f3cbf3e07a6a8236ecf25322a183ffd95f9cecc26f3bf5ee4ee5c5c76b2fbe66bc7de96e7a1aa6a863c7d600
6
+ metadata.gz: ea4c0dda2d0a821afb429fdddbf309185ec6815f130b1cca53e68080beebea1b1afd82ec65fce40b86d35d68642865636ccd897c26989720824113eeecb9973e
7
+ data.tar.gz: 345a4e870c67fb6b12f627850b22b9106bfdd029c6b2ae878575654dd0b2a9c1d977c7ae2aa79e6930f09b67ca1b1aabed95736ae476533bba51826e8fa6b90d
@@ -68,7 +68,6 @@ class Account::Scaffolding::CompletelyConcrete::TangibleThingsController < Accou
68
68
  def process_params(strong_params)
69
69
  # 🚅 skip this section when scaffolding.
70
70
  assign_boolean(strong_params, :boolean_button_value)
71
- assign_date_and_time(strong_params, :date_and_time_field_value)
72
71
  assign_checkboxes(strong_params, :multiple_button_values)
73
72
  assign_checkboxes(strong_params, :multiple_option_values)
74
73
  assign_select_options(strong_params, :multiple_super_select_values)
@@ -53,7 +53,6 @@ if defined?(Api::V1::ApplicationController)
53
53
  :cloudinary_image_value,
54
54
  :date_field_value,
55
55
  :date_and_time_field_value,
56
- :date_and_time_field_value_time_zone,
57
56
  :email_field_value,
58
57
  :file_field_value,
59
58
  :file_field_value_removal,
@@ -4,7 +4,9 @@ class Scaffolding::AbsolutelyAbstract::CreativeConcept < ApplicationRecord
4
4
  belongs_to :team
5
5
  # 🚅 add belongs_to associations above.
6
6
 
7
- has_many :completely_concrete_tangible_things, class_name: "Scaffolding::CompletelyConcrete::TangibleThing", foreign_key: :absolutely_abstract_creative_concept_id, dependent: :destroy
7
+ # TODO: We shouldn't have to explicitly set the order here, so we need to find out why these records
8
+ # are being returned in descending order when calling @creative_concept.completely_concrete_tangible_things.
9
+ has_many :completely_concrete_tangible_things, -> { order(:id) }, class_name: "Scaffolding::CompletelyConcrete::TangibleThing", foreign_key: :absolutely_abstract_creative_concept_id, dependent: :destroy
8
10
  has_many :collaborators, class_name: "Scaffolding::AbsolutelyAbstract::CreativeConcepts::Collaborator", dependent: :destroy, foreign_key: :creative_concept_id
9
11
  has_many :memberships, through: :collaborators
10
12
  # 🚅 add has_many associations above.
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.3"
4
4
  end
5
5
  end
@@ -1074,10 +1074,6 @@ class Scaffolding::Transformer
1074
1074
  end
1075
1075
 
1076
1076
  special_processing = case type
1077
- when "date_field"
1078
- "assign_date(strong_params, :#{name})"
1079
- when "date_and_time_field"
1080
- "assign_date_and_time(strong_params, :#{name})"
1081
1077
  when "buttons"
1082
1078
  if boolean_buttons
1083
1079
  "assign_boolean(strong_params, :#{name})"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.3
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-08-16 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard