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: 6cbd4ac6e5d9bc77ea4d359a7bc42e0984338db6
4
- data.tar.gz: 7211cf2bc3394d729bc9c0aa36f72e60ea79ab9d
3
+ metadata.gz: d351f408ce88f4305ffc3f5a7cca11d2c6577066
4
+ data.tar.gz: e06e336c178b567b18a4c0fc6b14c90bb11bbecf
5
5
  SHA512:
6
- metadata.gz: 331edb6a0e4f373ff5a86af779781e0b158a5a070a8c698a2adcff505d5d26ad2804384b2d33ced8779eede0b85e2b9a1e0d4a4207e929161a636ff4217ad895
7
- data.tar.gz: 6c5877fa87bfe29fa0b00660ff8122374f787fd05cb98b970a648c404e4ad3678fae516daa6c0d80645de8389bb073f0a80a0c885bda166b6b825e4c3b0c321f
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
- " #{user.camelize}.find(action).try(attrib)",
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
  ]
@@ -1,3 +1,3 @@
1
1
  module ScaffoldPlus
2
- VERSION = "1.4.9"
2
+ VERSION = "1.4.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.9
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volker Wiegand