lib/loquor/api_calls/show.rb in loquor-0.5.3 vs lib/loquor/api_calls/show.rb in loquor-0.5.4

- old
+ new

@@ -5,10 +5,14 @@ super(klass) @id = id end def execute - obj = Loquor.get("#{klass.path}/#{@id}") + obj = if (klass.cache) + Loquor.get("#{klass.path}/#{@id}", cache=klass.cache) + else + Loquor.get("#{klass.path}/#{@id}") + end @klass.new(obj) end end end