scaffold_plus 1.4.9 → 1.4.10
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: d351f408ce88f4305ffc3f5a7cca11d2c6577066
|
4
|
+
data.tar.gz: e06e336c178b567b18a4c0fc6b14c90bb11bbecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43271e172311ae727c2d3dcfcbd2c9497322e1b96d15b5d0fc96d130ea183d6dcc6c8a6213715480965604baae6cef95acfba5fbffcd1b6a7d9dee0a5fee068e
|
7
|
+
data.tar.gz: 386c07f489751e8fdb88b53acf12f30bb411eeb47315ade2449a825c715c9502d24caa5fccf26579582acafcd793a00f0a76c324ea58c1fb1ad1980aed8e181a
|
@@ -25,7 +25,11 @@ module ScaffoldPlus
|
|
25
25
|
lines = options.before? ? [ "" ] : []
|
26
26
|
lines << [
|
27
27
|
" def #{user}_data(action, attrib)",
|
28
|
-
"
|
28
|
+
" if action.include?('update')",
|
29
|
+
" #{user.camelize}.find(updated_by).try(attrib)",
|
30
|
+
" else".
|
31
|
+
" #{user.camelize}.find(created_by).try(attrib)",
|
32
|
+
" end",
|
29
33
|
" end",
|
30
34
|
""
|
31
35
|
]
|