lib/capybara/json.rb in capybara-json-0.2.2 vs lib/capybara/json.rb in capybara-json-0.2.3
- old
+ new
@@ -4,10 +4,10 @@
require 'multi_json'
module Capybara
module Json
def self.to_include
- Capybara.const_defined?("DSL") ? Capybara::DSL : Capybara
+ ::Capybara.const_defined?("DSL") ? ::Capybara::DSL : ::Capybara
end
def self.included(base)
base.__send__(:include, to_include) unless base < to_include
base.extend(self)