Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 b69d3375
*SVN*
* Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson]
* Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross]
* Fixed skeleton Rakefile to work with sqlite3 out of the box #521 [rasputnik]
......
......@@ -79,11 +79,11 @@ def controller_class_name(controller_name)
end
def controller_name(parameters)
parameters["controller"].gsub(/[^_a-zA-Z0-9]/, "").untaint
parameters["controller"].downcase.gsub(/[^_a-zA-Z0-9]/, "").untaint
end
def module_name(parameters)
parameters["module"].gsub(/[^_a-zA-Z0-9]/, "").untaint if parameters["module"]
parameters["module"].downcase.gsub(/[^_a-zA-Z0-9]/, "").untaint if parameters["module"]
end
def remove_class_hierarchy(klass, until_superclass)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册