]> source.dussan.org Git - redmine.git/commit
Rails3: controller: repositories: use to_s for revision parameter
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 9 Oct 2011 23:34:53 +0000 (23:34 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 9 Oct 2011 23:34:53 +0000 (23:34 +0000)
commit1f4ff3687cc29ac2c824327f91e23eba8acd7bdd
treed060d33d11cb7f652e1ef133d2468745f4d25af6
parent8e1cf61d860f613aa2566f8a7ab47783c92c2ae8
Rails3: controller: repositories: use to_s for revision parameter

On Rails 3.0 and Ruby 1.8.7, following error raises.

Error:
test_revision(RepositoriesControllerTest):
NoMethodError: undefined method `strip' for 1:Fixnum
    app/controllers/repositories_controller.rb:252:in `find_repository'
    test/functional/repositories_controller_test.rb:44:in `test_revision'

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7622 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/controllers/repositories_controller.rb