public
Description: The Custom Resource Name Plugin lets you add alias for your routes. This is very useful if you are developing a software to a country that does not speak English and wants all URLs in the native language.
Homepage: http://www.nomedojogo.com/custom-resource-name-plugin/
Clone URL: git://github.com/carlosbrando/custom_resource_name.git
Remove spaces.
carlosbrando (author)
Tue Aug 05 06:37:58 -0700 2008
commit  583c5a96a95aeb543290578519a24e75f2cbb769
tree    15aa725499b970a68273dfe30d2ece5fb67bb18e
parent  bb8988b52fa5278ece1a057f0466295f4d0610f1
...
8
9
10
11
 
12
13
14
...
95
96
97
98
 
99
100
101
...
8
9
10
 
11
12
13
14
...
95
96
97
 
98
99
100
101
0
@@ -8,7 +8,7 @@ module ActionController
0
         @singular ||= options[:singular] || plural.to_s.singularize
0
 
0
         @resources_as = options.delete(:resources_as) || {}
0
- @resource_as = options.delete(:resource_as) || {}
0
+ @resource_as = options.delete(:resource_as) || {}
0
         @actions_as = options.delete(:actions_as) || {}
0
         @namespaces_as = options.delete(:namespaces_as) || {}
0
         
0
@@ -95,7 +95,7 @@ module ActionController
0
         
0
         case args[0]
0
         when :resource
0
- @resource_as = options || {}
0
+ @resource_as = options || {}
0
         when :resources
0
           @resources_as = options || {}
0
         when :actions
...
447
448
449
450
451
 
452
453
454
455
 
 
 
456
457
458
...
447
448
449
 
 
450
451
 
 
 
452
453
454
455
456
457
0
@@ -447,12 +447,11 @@ class CustomResourceNameTest < Test::Unit::TestCase
0
       @request = ActionController::TestRequest.new
0
       @response = ActionController::TestResponse.new
0
       get :show
0
-
0
-
0
+
0
       full_path = "/Konto"
0
- assert_named_route "/Konto", "account_path", {}
0
- assert_named_route "/Konto/new", "new_account_path", {}
0
- assert_named_route "/Konto/edit", "edit_account_path", {}
0
+ assert_named_route "/Konto", "account_path", {}
0
+ assert_named_route "/Konto/new", "new_account_path", {}
0
+ assert_named_route "/Konto/edit", "edit_account_path", {}
0
     end
0
   end
0
 

Comments

    No one has commented yet.