lib/cistern/formatter.rb in cistern-0.3.1 vs lib/cistern/formatter.rb in cistern-0.3.2

- old
+ new

@@ -2,12 +2,12 @@ autoload :AwesomePrint, 'cistern/formatter/awesome_print' autoload :Default, 'cistern/formatter/default' autoload :Formatador, 'cistern/formatter/formatador' def self.default - if defined?(AwesomePrint) + if defined?(::AwesomePrint) Cistern::Formatter::AwesomePrint - elsif defined?(Formatador) + elsif defined?(::Formatador) Cistern::Formatter::Formatador else Cistern::Formatter::Default end end end