# File lib/awesome_print/ext/active_support.rb, line 14 def cast_with_active_support(object, type) cast = cast_without_active_support(object, type) if defined?(::ActiveSupport) && defined?(::HashWithIndifferentAccess) if (defined?(::ActiveSupport::TimeWithZone) && object.is_a?(::ActiveSupport::TimeWithZone)) || object.is_a?(::Date) cast = :active_support_time elsif object.is_a?(::HashWithIndifferentAccess) cast = :hash_with_indifferent_access end end cast end