class Locomotive::Wagon::SectionDecorator

Attributes

__content_assets_pusher__[RW]

Public Class Methods

new(object, content_assets_pusher) click to toggle source
Calls superclass method
# File lib/locomotive/wagon/decorators/section_decorator.rb, line 11
def initialize(object, content_assets_pusher)
  self.__content_assets_pusher__ = content_assets_pusher
  super(object, nil, nil)
end

Public Instance Methods

__attributes__() click to toggle source
# File lib/locomotive/wagon/decorators/section_decorator.rb, line 16
def __attributes__
  %i(name slug template definition)
end
definition() click to toggle source
# File lib/locomotive/wagon/decorators/section_decorator.rb, line 28
def definition
  replace_with_content_assets!(__getobj__.definition.to_json)
end
id() click to toggle source
# File lib/locomotive/wagon/decorators/section_decorator.rb, line 20
def id
  slug
end
template() click to toggle source
# File lib/locomotive/wagon/decorators/section_decorator.rb, line 24
def template
  replace_with_content_assets!(self.liquid_source)
end