Skip to content

Commit

Permalink
Fixes for earlier versions of Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Mar 23, 2010
1 parent e4340e8 commit d072ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/step_definitions/rails_application_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def initialize(*args)
route = if rails3?
%(match "#{path}", :to => "#{controller_action_pair}")
else
controller, action = controller_aciton_pair.split('#')
controller, action = controller_action_pair.split('#')
%(map.connect "#{path}", :controller => "#{controller}", :action => "#{action}")
end
routes_file = File.join(RAILS_ROOT, "config", "routes.rb")
Expand Down
3 changes: 1 addition & 2 deletions lib/hoptoad_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
require 'hoptoad_notifier/backtrace'
require 'hoptoad_notifier/rack'

#TODO: Not sure if this needs to be removed to support 2.x or not
require 'hoptoad_notifier/railtie' if defined?(Rails)
require 'hoptoad_notifier/railtie' if defined?(Rails::Railtie)

# Gem for applications to automatically post errors to the Hoptoad of their choice.
module HoptoadNotifier
Expand Down

0 comments on commit d072ff3

Please sign in to comment.