Permalink
Browse files

Can supply position via option

  • Loading branch information...
1 parent b3e30d2 commit 4f68cb4115a82adf9684a8d2b7252783fa48a561 @eviltrout eviltrout committed Apr 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Ruby/lib/mini_profiler/profiler.rb
@@ -28,7 +28,8 @@ def self.configuration_defaults
{
:auto_inject => true, # automatically inject on every html page
:base_url_path => "/mini-profiler-resources/",
- :authorize_cb => lambda {|env| true} # callback returns true if this request is authorized to profile
+ :authorize_cb => lambda {|env| true}, # callback returns true if this request is authorized to profile
+ :position => 'left' # Where it is displayed
}
end
@@ -179,7 +180,7 @@ def get_profile_script(env)
ids = "[\"%s\"]" % current['page_struct']['Id'].to_s
path = @options[:base_url_path]
version = MiniProfiler::VERSION
- position = 'left'
+ position = @options[:position]
showTrivial = false
showChildren = false
maxTracesToShow = 10

0 comments on commit 4f68cb4

Please sign in to comment.