Skip to content

Commit

Permalink
define_routes is deprecated, use config/routes.rb instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sniemela committed Jun 1, 2010
1 parent 1022d15 commit e55afcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions config/routes.rb
@@ -0,0 +1,4 @@
ActionController::Routing::Routes.draw do |map|
map.connect '/:locale/*url', :controller => 'site', :action => 'show_page',
:locale => Regexp.compile(Globalize2Extension.locales.join("|"))
end
7 changes: 1 addition & 6 deletions globalize2_extension.rb
Expand Up @@ -5,12 +5,7 @@ class Globalize2Extension < Radiant::Extension
version "0.1"
description "Translate content in Radiant CMS using the Globalize2 Rails plugin."
url "http://blog.aissac.ro/radiant/globalize2-extension/"

define_routes do |map|
map.connect '/:locale/*url', :controller => 'site', :action => 'show_page',
:locale => Regexp.compile(locales.join("|"))
end


GLOBALIZABLE_CONTENT = {
Page => [:title, :slug, :breadcrumb, :description, :keywords],
PagePart => [:content],
Expand Down

0 comments on commit e55afcb

Please sign in to comment.