Sha256: 2aeccb267e96caf6838a0e4e0fb57baf98094ac1b3cf2d9627710715ce38429b
Contents?: true
Size: 693 Bytes
Versions: 17
Compression:
Stored size: 693 Bytes
Contents
class PublicationsController < ApplicationController def show @publication = Publication.matching_slug(params[:publication_slug]).first @contents = @publication.managed_contents.sort{|a,b| a.headline <=> b.headline} @contents.sort!{|a,b| a.position.to_i <=> b.position.to_i} if @publication.has_faqs? respond_to do |format| format.html format.rss { render :xml } end end def feed @publication = Publication.matching_slug(params[:publication_slug]).first @contents = @publication.managed_contents.published.sort{|a,b| a.headline <=> b.headline} @contents.sort!{|a,b| a.position.to_i <=> b.position.to_i} if @publication.has_faqs? end end
Version data entries
17 entries across 17 versions & 1 rubygems