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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 554a8f4caff88d268c7db6f29f69fbcb9f8fa414
4
- data.tar.gz: 17600fb6c45a585580323c3dcc5c83608084485d
3
+ metadata.gz: 10e751967e7997f82ea66c79b025aeaaea9e31fb
4
+ data.tar.gz: 518c880d2425f637c31d379e81e88f59888d075d
5
5
  SHA512:
6
- metadata.gz: 207adf57c94f55d735eb3bb95818373ee32016cda4b80c666ae5df9842ec033940ed66b7a7199928f3e4b804e2c6787c5cbeda4ac62522272ba2849205e5e62e
7
- data.tar.gz: 21fcd96376213d1b9492cd574eccae8f30a007ae6def29e1e996730d50f05b938b8a78ce560191f95b5c2c4fbd941e1789ca72a77a5ab270a55902ba600928c9
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).find Integer(id.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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teepee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.12
4
+ version: 0.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mark Gore