Skip to content

Commit

Permalink
Print which views are called in log when in development mode. Fix #636
Browse files Browse the repository at this point in the history
[Thanks to minikomi]
  • Loading branch information
DAddYE committed Aug 26, 2011
1 parent 81c70db commit d4c3b41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions padrino-helpers/lib/padrino-helpers/render_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module RenderHelpers
# partial 'photo/item', :engine => :erb
#
def partial(template, options={})
logger.debug "PARTIAL: #{template} called" if defined?(logger)
options.reverse_merge!(:locals => {}, :layout => false)
path = template.to_s.split(File::SEPARATOR)
object_name = path[-1].to_sym
Expand Down

1 comment on commit d4c3b41

@minikomi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, glad this made it in. Thanks!

Please sign in to comment.