1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

check for the specific ActiveSupport method we need available

This commit is contained in:
Kem Mason 2015-08-01 09:44:05 +12:00
parent d8aeb66b4b
commit f97a9538dc

View file

@ -25,7 +25,7 @@ unless defined?(AwesomePrint::Inspector)
# #
# Load remaining extensions. # Load remaining extensions.
# #
if defined?(ActiveSupport) if defined?(ActiveSupport.on_load)
ActiveSupport.on_load(:action_view) do ActiveSupport.on_load(:action_view) do
require File.dirname(__FILE__) + "/awesome_print/ext/action_view" require File.dirname(__FILE__) + "/awesome_print/ext/action_view"
end end