bullet_train-super_scaffolding 1.0.37 → 1.0.40

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: 1ca43f2f490c937c87fcc1493b3e194d56f2e39bccd57e01ba7eda9bbaa230fa
4
- data.tar.gz: f027670522cf4faf29a93bf237874ccffcee91f88fece103522ec2e0c0e21508
3
+ metadata.gz: 87a39d71d1f67a3d605d8c4ae07f4bc943c960b2b53462b50849e69d6432c833
4
+ data.tar.gz: 9df95982f857ed3078a3e102289922de88923ff691850659c51f9597a51f5350
5
5
  SHA512:
6
- metadata.gz: 27dba84c5f1fa859f612c33897b747eb5cdcb850d6774dd1a95846c7f7dcf646630d8e8093e023e3084342cc864f2a58a669605147de16fa02fde8b74fcf2cdc
7
- data.tar.gz: 647922cfdf4696130bf23c1fe15544792ca257cc358acd98baa1f2932f09521d3457ba429fb3c8ff2e6b3a9a3f9d1e53c754b1b92d0f708ee37d6012da49a10f
6
+ metadata.gz: 4b6039c8d90f382b04b7bc1e6214cbb03ab42c9ce1d9cf7ae9f6581524e3557174c3e9f7c06382ecc16b389570f431965618b4df6f58104e52c0018ca67f4847
7
+ data.tar.gz: 0fc1286f8a5fa5aec8505922c3a2cf73d2d48551c77141c8c8b0534a4f95b0f4d6ef0d1cef952c1014dfae565808807100a816d43b5584e00fd65eac0b4b2db5
@@ -72,6 +72,7 @@
72
72
  <% end %>
73
73
  <% end %>
74
74
 
75
+ <%# 🚅 super scaffolding will insert new targets one parent action model buttons above this line. %>
75
76
  <%# 🚅 super scaffolding will insert new bulk action model buttons above this line. %>
76
77
  <%= render "shared/bulk_action_select" %>
77
78
 
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.0.37"
3
+ VERSION = "1.0.40"
4
4
  end
5
5
  end
@@ -12,6 +12,23 @@ class Scaffolding::Transformer
12
12
  def update_models_abstract_class
13
13
  end
14
14
 
15
+ def created_by_reference(created_by_index_name)
16
+ end
17
+
18
+ def approved_by_reference(approved_by_index_name)
19
+ end
20
+
21
+ def permit_parents
22
+ ["Team"]
23
+ end
24
+
25
+ def last_joinable_parent
26
+ "Team"
27
+ end
28
+
29
+ def update_action_models_abstract_class(targets_n)
30
+ end
31
+
15
32
  def initialize(child, parents, cli_options = {})
16
33
  self.child = child
17
34
  self.parent = parents.first
data/lib/scaffolding.rb CHANGED
@@ -1,4 +1,10 @@
1
1
  module Scaffolding
2
+ mattr_accessor :database, default: :postgresql
3
+
4
+ def self.mysql?
5
+ database == :mysql
6
+ end
7
+
2
8
  def self.valid_attribute_type?(type)
3
9
  [
4
10
  "boolean",
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.0.37
4
+ version: 1.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2022-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard