bullet_train-super_scaffolding 1.9.0 → 1.11.0
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: 4ce64f45a4fec6b65c32c37ee4f2373a14ee864a535dcc113d5287e27ef2ff83
|
4
|
+
data.tar.gz: 5e856fc2113513651d3c947aaccf047c7a849c546f5b0aa86a09aa7bebdbed76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f9e4f075fba90152d1ff6cb50640ef5c5e739fd0e05b8a39795975817c7806ddefd6f81e520e3827866543ab7cb205df99bebd624205e37aa40cd99b54430ca
|
7
|
+
data.tar.gz: ecffd7e443aa60656a464bffcfd88aa37fd6984697f1a25dacf0c2e61cee0901af32bf9c81e455d63ab274ce6a76c1e429e4216a49525abe65a6e82909e38154
|
@@ -50,7 +50,7 @@ module Scaffolding::FileManipulator
|
|
50
50
|
insert_after = 1
|
51
51
|
lines.each_with_index do |line, index|
|
52
52
|
break if current_needle.nil?
|
53
|
-
if line.strip == current_needle + ":"
|
53
|
+
if line.split("#").first.strip == current_needle + ":"
|
54
54
|
current_needle = location_array.shift.to_s
|
55
55
|
insert_after = index
|
56
56
|
current_space = line.match(/\s+/).to_s
|
@@ -483,7 +483,7 @@ class Scaffolding::Transformer
|
|
483
483
|
|
484
484
|
def add_ability_line_to_roles_yml(class_names = nil)
|
485
485
|
model_names = class_names || [child]
|
486
|
-
role_file = "
|
486
|
+
role_file = "#{Rails.root}/config/models/roles.yml"
|
487
487
|
roles_hash = YAML.load_file(role_file)
|
488
488
|
default_role_placements = [
|
489
489
|
[:default, :models],
|
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.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|