Sha256: 9c40ebbcb8d0d1f071e7edea4c8edcdc092cb45a7db65a316032ab5cf117e0f1

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

module ArticlesHelper
  def feed_atom
    if params[:action] == 'search'
      url_for(:only_path => false,:format => :atom, :q => params[:q])
    else
      super
    end
  end

  def feed_rss
    if params[:action] == 'search'
      url_for(:only_path => false,:format => :rss, :q => params[:q])
    else
      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typo-5.2.98 app/helpers/articles_helper.rb
typo-5.3 app/helpers/articles_helper.rb