Skip to content

Commit

Permalink
Fixed new_sequel? to return boolean.
Browse files Browse the repository at this point in the history
  • Loading branch information
pk committed May 6, 2009
1 parent 42521b1 commit 8a802d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/merb/orms/sequel/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a802d3

Please sign in to comment.