vendor/activesupport/lib/active_support/basic_object.rb in relevance-castronaut-0.5.4 vs vendor/activesupport/lib/active_support/basic_object.rb in relevance-castronaut-0.6.0
- old
+ new
@@ -5,10 +5,10 @@
# Ruby 1.9 introduces BasicObject which differs slightly from Builder's
# BlankSlate that has been used so far. ActiveSupport::BasicObject provides a
# barebones base class that emulates Builder::BlankSlate while still relying on
# Ruby 1.9's BasicObject in Ruby 1.9.
module ActiveSupport
- if RUBY_VERSION >= '1.9'
+ if defined? ::BasicObject
class BasicObject < ::BasicObject
undef_method :==
undef_method :equal?
# Let ActiveSupport::BasicObject at least raise exceptions.