Sha256: 4e3c7320c2c6c147177ea6659eae15da12e8e83351d133a5d80d565863cc8afa
Contents?: true
Size: 486 Bytes
Versions: 17
Compression:
Stored size: 486 Bytes
Contents
class ManagedContentsController < ApplicationController def show @publication = Publication.matching_slug(params[:publication_slug]).first @content = @publication.managed_contents.where(:slug => params[:content_slug]).first @section = @content.sections.sort{|a,b| a.position.to_i <=> b.position.to_i}.first if @content.has_sections? if @content.document_filename send_data(@content.document.retrieve_from_store!(@content.document_filename)) end end end
Version data entries
17 entries across 17 versions & 1 rubygems