stringify the JSON definition of a section

Didier Lafforgue committed May 31, 2018
commit 91f574acf77b0cb44708da656b8b7c9e5532549a
Showing 1 changed file with 4 additions and 0 deletions
locomotive/wagon/decorators/sections_decorator.rb b/lib/locomotive/wagon/decorators/sections_decorator.rb +4 -0
@@ @@ -25,6 +25,10 @@ module Locomotive
replace_with_content_assets!(self.liquid_source)
end
+ def definition
+ __getobj__.definition.to_json
+ end
+
end
end