Module: Locomotive::Extensions::Page::Parse

Extended by:
ActiveSupport::Concern
Included in:
Page
Defined in:
app/models/locomotive/extensions/page/parse.rb

Instance Method Summary collapse

Instance Method Details

#force_serialize_templateObject



32
33
34
35
# File 'app/models/locomotive/extensions/page/parse.rb', line 32

def force_serialize_template
  self.serialize_template
  @done_serialize_template = true
end

#templateObject



28
29
30
# File 'app/models/locomotive/extensions/page/parse.rb', line 28

def template
  @template ||= Marshal.load(self.serialized_template.to_s) rescue nil
end