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:50:08 -0700 2008
commit  72e6e91600e1cd0c9f0673b7f0fed125f4aa8d0c
tree    32f72fce80c92e5f772ff146936e0f2fd0d40aaa
parent  583c5a96a95aeb543290578519a24e75f2cbb769
...
47
48
49
50
 
51
52
 
53
54
 
55
56
57
...
66
67
68
69
70
71
72
73
 
74
75
 
76
77
 
78
79
80
...
47
48
49
 
50
51
 
52
53
 
54
55
56
57
...
66
67
68
 
69
70
71
 
72
73
 
74
75
 
76
77
78
79
0
@@ -47,11 +47,11 @@ module ActionController
0
     def map_singleton_resource(entities, options = {}, &block)
0
       @actions_as ||= {}
0
       actions_as = options.has_key?(:actions_as) ? @actions_as.merge(options[:actions_as]) : @actions_as
0
-
0
+
0
       options.merge!(:actions_as => actions_as, :resources_as => @resource_as, :namespaces_as => @namespaces_as)
0
-
0
+
0
       resource = SingletonResource.new(entities, options)
0
-
0
+
0
       with_options :controller => resource.controller do |map|
0
         map_collection_actions(map, resource)
0
         map_default_singleton_actions(map, resource)
0
@@ -66,15 +66,14 @@ module ActionController
0
       end
0
     end
0
     
0
-
0
     def map_resource(entities, options = {}, &block)
0
       @actions_as ||= {}
0
       actions_as = options.has_key?(:actions_as) ? @actions_as.merge(options[:actions_as]) : @actions_as
0
-
0
+
0
       options.merge!(:actions_as => actions_as, :resources_as => @resources_as, :namespaces_as => @namespaces_as)
0
-
0
+
0
       resource = Resource.new(entities, options)
0
-
0
+
0
       with_options :controller => resource.controller do |map|
0
         map_collection_actions(map, resource)
0
         map_default_collection_actions(map, resource)

Comments

    No one has commented yet.