Sha256: c392a040b9bc6c45eb0b8b98af14211621baf66c1e93881925ba3b93bc188d30

Contents?: true

Size: 1.07 KB

Versions: 11

Compression:

Stored size: 1.07 KB

Contents

ActionController::Routing::Routes.draw do |map|
  if Radiant::Config['tags.results_page_url'].blank?
    Radiant::Config['tags.results_page_url'] = TagsExtension::DEFAULT_RESULTS_URL if Radiant::Config['tags.results_page_url'].blank?
  end
  begin
    if defined?(SiteLanguage) && SiteLanguage.count > 0
      include Globalize
      SiteLanguage.codes.each do |code|
        langname = Locale.new(code).language.code
        map.connect "#{langname}#{Radiant::Config['tags.results_page_url']}/:tag", :controller => 'site', :action => 'show_page', :url => Radiant::Config['tags.results_page_url'], :language => code
      end
    else if defined?(VhostExtension)
      map.connect "#{Radiant::Config['tags.results_page_url']}/:tag", :controller => 'site', :action => 'show_page', :url => Radiant::Config['tags.results_page_url']
    end
      map.connect "#{Radiant::Config['tags.results_page_url']}/:tag", :controller => 'site', :action => 'show_page', :url => Radiant::Config['tags.results_page_url']
    end
  rescue
    # dirty hack; need to get trough here to allow migrations to run..
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-tags-extension-1.6.10 config/routes.rb
radiant-tags-extension-1.6.9 config/routes.rb
radiant-tags-extension-1.6.8 config/routes.rb
radiant-tags-extension-1.6.7 config/routes.rb
radiant-tags-extension-1.6.6 config/routes.rb
radiant-tags-extension-1.6.5 config/routes.rb
radiant-tags-extension-1.6.4 config/routes.rb
radiant-tags-extension-1.6.3 config/routes.rb
radiant-tags-extension-1.6.2 config/routes.rb
radiant-tags-extension-1.6.1 config/routes.rb
radiant-tags-extension-1.6.0 config/routes.rb