Module: Locomotive::Extensions::ContentType::ItemTemplate

Extended by:
ActiveSupport::Concern
Included in:
ContentType
Defined in:
app/models/locomotive/extensions/content_type/item_template.rb

Instance Method Summary collapse

Instance Method Details

#item_templateObject



17
18
19
# File 'app/models/locomotive/extensions/content_type/item_template.rb', line 17

def item_template
  @item_template ||= Marshal.load(read_attribute(:serialized_item_template).to_s) rescue nil
end