mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
adding ActionHelper ap_debug
This commit is contained in:
parent
2f8e31ebe3
commit
a42d00ad33
2 changed files with 6 additions and 0 deletions
|
@ -11,4 +11,5 @@ require File.dirname(__FILE__) + "/ap/core_ext/logger" if defined?(::Logger) or
|
|||
|
||||
require File.dirname(__FILE__) + "/ap/mixin/active_record" if defined?(::ActiveRecord)
|
||||
require File.dirname(__FILE__) + "/ap/mixin/active_support" if defined?(::ActiveSupport)
|
||||
require File.dirname(__FILE__) + "/ap/mixin/application_helper" if defined?(::ApplicationHelper)
|
||||
|
||||
|
|
5
lib/ap/mixin/application_helper.rb
Normal file
5
lib/ap/mixin/application_helper.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module ApplicationHelper
|
||||
def ap_debug(obj)
|
||||
content_tag(:pre, obj.ai(:plain => true), :class => 'debug_dump')
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue