scaffold_plus 1.9.0 → 1.9.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87cdca95970c67bcb7fffbb7624108b5d889e622
|
4
|
+
data.tar.gz: 8eb87613b8b7cdb4ebbf73b9573359a069325e86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9965bd780a6f65704c4e6cd24a08c20a47e3179516e3b42b3e7b896c2a21114bcdf33ea239da4ec63fc349387365d0cb73ef8860a456e9930140da9c69689688
|
7
|
+
data.tar.gz: 14316209cd999b6d5be0f8f43f10d812cb50f90cd333dae3099fcc03be6fdd2c73738e4eed11993d14e8d72d2760f71336e0ac74626d23188fb6c7a031a18d44
|
@@ -25,17 +25,12 @@ module ScaffoldPlus
|
|
25
25
|
inject_into_class "app/models/#{name}.rb", class_name do
|
26
26
|
text = options.before? ? "\n" : ""
|
27
27
|
text << " extend FriendlyId\n"
|
28
|
-
text << " friendly_id :#{attribute}, use: :slugged\n"
|
28
|
+
text << " friendly_id :#{attribute}, use: [:slugged, :finders]\n"
|
29
29
|
text << "\n" if options.after?
|
30
30
|
text
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
def update_controller
|
35
|
-
file = "app/controllers/#{table_name}_controller.rb"
|
36
|
-
gsub_file file, /(#{class_name})\.find/, "\\1.friendly.find"
|
37
|
-
end
|
38
|
-
|
39
34
|
protected
|
40
35
|
|
41
36
|
def migration_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scaffold_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Volker Wiegand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|