Skip to content

Commit

Permalink
Don't leave open dangling connections in development mode. [#1335 sta…
Browse files Browse the repository at this point in the history
…te:resolved]
  • Loading branch information
lifo committed Nov 7, 2008
1 parent 529c271 commit d20955f
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -125,9 +125,8 @@ def reset!
end

# Returns true if its safe to reload the connection between requests for development mode.
# This is not the case for Ruby/MySQL and it's not necessary for any adapters except SQLite.
def requires_reloading?
false
true
end

# Checks whether the connection to the database is still active (i.e. not stale).
Expand Down

0 comments on commit d20955f

Please sign in to comment.