teepee 0.7.12 → 0.7.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teepee/actionable-commander.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10e751967e7997f82ea66c79b025aeaaea9e31fb
|
4
|
+
data.tar.gz: 518c880d2425f637c31d379e81e88f59888d075d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22eaf3449e3eeb6d448b95d59b6a7e7c6bd3bb393321e6bbadacc6b8bbcbd9094a01a86f29508750f7fcba76f063ca56f8bd9232cfa190019eb664d93bc7803f
|
7
|
+
data.tar.gz: 96083ada29bf091be21bccc75fe02cfb46d6047989708be4a39b895dd3b9436a8c803dcdd5986c431c0740ee65d7f155228efe82e0279eed49be93089cd3a4dd
|
@@ -62,7 +62,7 @@ module Teepee
|
|
62
62
|
elsif not id.to_s =~ /\A[0-9]+\z/
|
63
63
|
command_error "#{singular}_id: error: invalid #{singular} ID specified"
|
64
64
|
else
|
65
|
-
thing = eval(klass.to_s).
|
65
|
+
thing = eval(klass.to_s).find_by_id Integer(id.to_s)
|
66
66
|
if thing
|
67
67
|
@action_view.render partial: partial,
|
68
68
|
locals: {singular.to_sym => thing}
|