diff --git a/lib/awesome_print.rb b/lib/awesome_print.rb index c193056..d769ac1 100644 --- a/lib/awesome_print.rb +++ b/lib/awesome_print.rb @@ -12,29 +12,30 @@ unless defined?(AwesomePrint::Inspector) require "awesome_print/core_ext/#{file}" end - require "awesome_print/inspector" - require "awesome_print/formatter" - require "awesome_print/version" - require "awesome_print/core_ext/logger" if defined?(Logger) + require 'awesome_print/custom_defaults' + require 'awesome_print/inspector' + require 'awesome_print/formatter' + require 'awesome_print/version' + require 'awesome_print/core_ext/logger' if defined?(Logger) # # Load the following under normal circumstances as well as in Rails # console when required from ~/.irbrc or ~/.pryrc. # - require "awesome_print/ext/active_record" if defined?(ActiveRecord) || AwesomePrint.rails_console? - require "awesome_print/ext/active_support" if defined?(ActiveSupport) || AwesomePrint.rails_console? + require 'awesome_print/ext/active_record' if defined?(ActiveRecord) || AwesomePrint.rails_console? + require 'awesome_print/ext/active_support' if defined?(ActiveSupport) || AwesomePrint.rails_console? # # Load remaining extensions. # if defined?(ActiveSupport.on_load) ActiveSupport.on_load(:action_view) do - require "awesome_print/ext/action_view" + require 'awesome_print/ext/action_view' end end - require "awesome_print/ext/mongo_mapper" if defined?(MongoMapper) - require "awesome_print/ext/mongoid" if defined?(Mongoid) - require "awesome_print/ext/nokogiri" if defined?(Nokogiri) - require "awesome_print/ext/nobrainer" if defined?(NoBrainer) - require "awesome_print/ext/ripple" if defined?(Ripple) - require "awesome_print/ext/sequel" if defined?(Sequel) - require "awesome_print/ext/ostruct" if defined?(OpenStruct) + require 'awesome_print/ext/mongo_mapper' if defined?(MongoMapper) + require 'awesome_print/ext/mongoid' if defined?(Mongoid) + require 'awesome_print/ext/nokogiri' if defined?(Nokogiri) + require 'awesome_print/ext/nobrainer' if defined?(NoBrainer) + require 'awesome_print/ext/ripple' if defined?(Ripple) + require 'awesome_print/ext/sequel' if defined?(Sequel) + require 'awesome_print/ext/ostruct' if defined?(OpenStruct) end diff --git a/lib/awesome_print/custom_defaults.rb b/lib/awesome_print/custom_defaults.rb index d4ef42e..469e4ab 100644 --- a/lib/awesome_print/custom_defaults.rb +++ b/lib/awesome_print/custom_defaults.rb @@ -1,5 +1,4 @@ module AwesomePrint - class << self attr_accessor :defaults, :force_colors