Skip to content

Commit

Permalink
Use method_defined? instead of nonexistent instance_method_defined?
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jun 30, 2017
1 parent 227789f commit 5dfe300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel_pg/sequel_pg.rb
Expand Up @@ -42,7 +42,7 @@ def as_hash(key_column, value_column = nil, opts = Sequel::OPTS)
end
end

unless Sequel::Dataset.instance_method_defined?(:as_hash)
unless Sequel::Dataset.method_defined?(:as_hash)
# Handle previous versions of Sequel that use to_hash instead of as_hash
alias to_hash as_hash
remove_method :as_hash
Expand Down

0 comments on commit 5dfe300

Please sign in to comment.