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:
parent
d8aeb66b4b
commit
f97a9538dc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue