Sha256: c3de723b187c79e39463d525f2da75c524263518ef573e2a75aff6fedbde25e5

Contents?: true

Size: 562 Bytes

Versions: 12

Compression:

Stored size: 562 Bytes

Contents

# Gotta include this file if we want to test url_history in context of adva-cms.
# There seems to be no easy way to dynamically install and uninstall around filters
# in ActionController. Thus we can only test adva-cms with or without url_history
# initialized.

Content.class_eval do
  def update_url_history_params(params)
    if params.has_key?(:year)
      params.merge self.full_permalink
    elsif params.has_key?(:permalink)
      params.merge :permalink => self.permalink
    else
      params
    end
  end
end

ApplicationController.tracks_url_history

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
adva-0.2.4 test/plugins/adva_url_history/init_url_history.rb
adva-0.2.3 test/plugins/adva_url_history/init_url_history.rb
adva-0.2.2 test/plugins/adva_url_history/init_url_history.rb
adva-0.2.1 test/plugins/adva_url_history/init_url_history.rb
adva-0.2.0 test/plugins/adva_url_history/init_url_history.rb
adva-0.1.4 test/plugins/adva_url_history/init_url_history.rb
adva-0.1.3 test/plugins/adva_url_history/init_url_history.rb
adva-0.1.2 test/plugins/adva_url_history/init_url_history.rb
adva-0.1.1 test/plugins/adva_url_history/init_url_history.rb
adva-0.1.0 test/plugins/adva_url_history/init_url_history.rb
adva_cms-0.0.1 test/plugins/adva_url_history/init_url_history.rb
adva-0.0.1 adva_cms/test/plugins/adva_url_history/init_url_history.rb