diff --git a/lib/awesome_print.rb b/lib/awesome_print.rb index ab4a669..7ce87c6 100644 --- a/lib/awesome_print.rb +++ b/lib/awesome_print.rb @@ -25,7 +25,7 @@ unless defined?(AwesomePrint::Inspector) # # Load remaining extensions. # - if defined?(ActiveSupport) + if defined?(ActiveSupport.on_load) ActiveSupport.on_load(:action_view) do require File.dirname(__FILE__) + "/awesome_print/ext/action_view" end