Skip to content

Commit 57cc345

Browse files
committed
control plugin serialization explicitly to avoid caching problem
test plan: * configure kaltura for an account * you should not get errors about dump_data on a Proc Change-Id: I2c7b1ef104336d3d2f5b4f12302a5f25d1ce630e Reviewed-on: https://gerrit.instructure.com/25218 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Jacob Fugal <jacob@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com>
1 parent c4a80d6 commit 57cc345

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

lib/canvas/plugin.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@ def initialize(id, tag=nil)
4444
:base=>nil
4545
}.with_indifferent_access
4646
end
47-
47+
48+
49+
# custom serialization, since the meta can containt procs
50+
def _dump(depth)
51+
self.id.to_s
52+
end
53+
54+
def self._load(str)
55+
find(str)
56+
end
57+
4858
def default_settings
4959
settings = @meta[:settings]
5060
settings = settings.call if settings.respond_to?(:call)

0 commit comments

Comments
 (0)