app/models/page_serializer.rb
# TODO:
# * references. ...not for this version, but mark it as TODO.
# * TODO attributions. Crappy. ...i think we can skip it for the very first version, but soon
# * ratings are also TODO, though lower priority.
# * TODO: Think about page content positions. :S
# NOTE: I've been testing with: PageSerializer.store_page_id(328598)
# Next was PageSerializer.store_page_id(1033083)
# ...It's very slow. ...but that's EOL. :|
references. ...not for this version, but mark it as TODO.
TODO attributions. Crappy. ...i think we can skip it for the very first version, but soon
ratings are also TODO, though lower priority.
TODO: Think about page content positions.
references . ... not for this version but mark it as TODO . TODO attributions . Crappy . ... i think we can skip it for the very first version but soon ratings are also TODO though lower priority . TODO : Think about page content positions .
def build_section(toc_item)
      return nil if toc_item.nil?
      cached(:sections, toc_item.id) do
        { parent: build_section(toc_item.parent), position: toc_item.view_order,
          name: toc_item.label }
      end
    end
def build_section ( toc_item ) return nil if toc_item . nil? cached ( :sections , toc_item . id ) do { parent : build_section ( toc_item . parent ) , position : toc_item . view_order , name : toc_item . label } end end
TODO:
 references.
TODO : references .
toc_item
<not_specific>