Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing 'register_template_handler' error in Rails 2.1

  • Loading branch information...
commit ebf9a4f0d95cc5871f9e13b16d72e1b29724c30c 1 parent 22d9b0f
@ryanb authored
View
2  lib/selenium_on_rails/rselenese.rb
@@ -8,7 +8,7 @@
# See SeleniumOnRails::TestBuilder for a list of available commands.
class SeleniumOnRails::RSelenese < SeleniumOnRails::TestBuilder
end
-ActionView::Base.register_template_handler 'rsel', SeleniumOnRails::RSelenese
+ActionView::Template.register_template_handler 'rsel', SeleniumOnRails::RSelenese
class SeleniumOnRails::RSelenese < SeleniumOnRails::TestBuilder
attr_accessor :view
View
2  lib/selenium_on_rails/selenese.rb
@@ -1,6 +1,6 @@
class SeleniumOnRails::Selenese
end
-ActionView::Base.register_template_handler 'sel', SeleniumOnRails::Selenese
+ActionView::Template.register_template_handler 'sel', SeleniumOnRails::Selenese
class SeleniumOnRails::Selenese
Please sign in to comment.
Something went wrong with that request. Please try again.