Permalink
Browse files

Fixed new_sequel? to return boolean.

  • Loading branch information...
pk committed May 6, 2009
1 parent 42521b1 commit 8a802d3cd4b800e4ee9f1005a255bb0cd45ddcf2
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/merb/orms/sequel/connection.rb
@@ -14,9 +14,9 @@ def sample_source() File.dirname(__FILE__) / "database.yml.sample" end
# Determine if we use Sequel 3 or not
#
# ==== Returns
- # Boolean:: True if using Sequel >= 2.12.0 or False
+ # Bool:: True if using Sequel >= 2.12.0 or False
def new_sequel?
- /^(2.12|3)/ =~ ::Sequel.version
+ !!/^(2.12|3)/ =~ ::Sequel.version
end
def copy_sample_config

0 comments on commit 8a802d3

Please sign in to comment.