Skip to content

Commit

Permalink
Fixed typos in db-related tasks
Browse files Browse the repository at this point in the history
The irony is that NameError caused by typo was catched by NameError handler intended to handle "ActiveRecord not loaded" scenario.
  • Loading branch information
Alex Lebedev committed Nov 3, 2008
1 parent 2fcaeb2 commit 5599009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subscription_management/tasks/schema.rb
Expand Up @@ -39,7 +39,7 @@
begin
begin
connected = true if ActiveRecord::Base.connection
rescue ActiveRecord::ConenctionNotEstablished
rescue ActiveRecord::ConnectionNotEstablished
end
rescue NameError # ActiveRecord not loaded
end
Expand Down
2 changes: 1 addition & 1 deletion tracker/tasks/schema.rb
Expand Up @@ -55,7 +55,7 @@
begin
begin
connected = true if ActiveRecord::Base.connection
rescue ActiveRecord::ConenctionNotEstablished
rescue ActiveRecord::ConnectionNotEstablished
end
rescue NameError # ActiveRecord not loaded
end
Expand Down

0 comments on commit 5599009

Please sign in to comment.