Sha256: 5154b362e990abd7632fb7feebb8d07730066a96aa024131702906d88bce1c9c

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

module ArticlesHelper
  def feed_atom
    if params[:action] == 'search'
      url_for(:only_path => false,:format => :atom, :q => params[:q])
    elsif not @article.nil?
      @article.feed_url(:atom)
    else
      @auto_discovery_url_atom
    end
  end

  def feed_rss
    if params[:action] == 'search'
      url_for(:only_path => false,:format => :rss, :q => params[:q])
    elsif not @article.nil?
      @article.feed_url(:rss20)
    else
      @auto_discovery_url_rss
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typo-5.5 app/helpers/articles_helper.rb
typo-5.4.4 app/helpers/articles_helper.rb
typo-5.4.3 app/helpers/articles_helper.rb
typo-5.4.2 app/helpers/articles_helper.rb
typo-5.4.1 app/helpers/articles_helper.rb