1
0
Fork 0
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:
Daniel Bretoi 2010-05-21 10:55:38 -07:00
parent 2f8e31ebe3
commit a42d00ad33
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -0,0 +1,5 @@
module ApplicationHelper
def ap_debug(obj)
content_tag(:pre, obj.ai(:plain => true), :class => 'debug_dump')
end
end