mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Use better namespace for ActionView plugin
This commit is contained in:
parent
c88594a811
commit
2566e5c1b1
1 changed files with 9 additions and 8 deletions
|
@ -3,7 +3,8 @@
|
||||||
# Awesome Print is freely distributable under the terms of MIT license.
|
# Awesome Print is freely distributable under the terms of MIT license.
|
||||||
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
module AwesomePrintActionView
|
module AwesomePrint
|
||||||
|
module ActionView
|
||||||
|
|
||||||
# Use HTML colors and add default "debug_dump" class to the resulting HTML.
|
# Use HTML colors and add default "debug_dump" class to the resulting HTML.
|
||||||
def ap_debug(object, options = {})
|
def ap_debug(object, options = {})
|
||||||
|
@ -11,7 +12,7 @@ module AwesomePrintActionView
|
||||||
end
|
end
|
||||||
|
|
||||||
alias_method :ap, :ap_debug
|
alias_method :ap, :ap_debug
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ActionView::Base.send(:include, AwesomePrintActionView) if defined?(ActionView)
|
ActionView::Base.send(:include, AwesomePrint::ActionView) if defined?(ActionView)
|
||||||
|
|
Loading…
Reference in a new issue