lib/knj/translations.rb in knjrbfw-0.0.23 vs lib/knj/translations.rb in knjrbfw-0.0.24

- old
+ new

@@ -111,14 +111,14 @@ trans = @ob.list(:Translation, { "object_id" => obj.id, "object_class" => obj.class.name }) trans.each do |tran| - #Delete the translation object. - @ob.delete(tran) - #Delete the cache if defined on the object. cache.delete(tran[:key].to_sym) if cache and cache.key?(tran[:key].to_sym) + + #Delete the translation object. + @ob.delete(tran) end end end class Knj::Translations::Translation < Knj::Datarow \ No newline at end of file