SamSaffron / MiniProfiler

A simple but effective mini-profiler for ASP.NET MVC, ASP.NET and Ruby.
http://miniprofiler.com
1.05k stars 221 forks source link

Rack::MiniProfiler.config #164

Closed dylanjha closed 11 years ago

dylanjha commented 11 years ago

No option to set #start_hidden am I missing something? According to the docs in the README its an example. I'll fix the README if the README is incorrect.

[5] pry(#<Rack::MiniProfiler::Config>):1> ls
Rack::MiniProfiler::Config#methods: 
  authorization_mode   backtrace_ignores=   base_url_path   pre_authorize_cb     skip_schema_queries=  storage_options       user_provider=
  authorization_mode=  backtrace_includes   base_url_path=  pre_authorize_cb=    storage               storage_options=    
  auto_inject          backtrace_includes=  merge!          skip_paths           storage=              use_existing_jquery 
  auto_inject=         backtrace_remove     position        skip_paths=          storage_instance      use_existing_jquery=
  backtrace_ignores    backtrace_remove=    position=       skip_schema_queries  storage_instance=     user_provider       
self.methods: __pry__
instance variables: 
  @authorization_mode  @backtrace_includes  @base_url_path  @pre_authorize_cb  @skip_schema_queries  @storage_options
  @auto_inject         @backtrace_remove    @position       @skip_paths        @storage              @user_provider  
locals: _  __  _dir_  _ex_  _file_  _in_  _out_  _pry_
[6] pry(#<Rack::MiniProfiler::Config>):1> 
SamSaffron commented 11 years ago

its an old version thing, it is there in latest:

[2] pry(main)> ls Rack::MiniProfiler::Config
Rack::MiniProfiler::Config.methods: attr_accessor  attributes  default
Rack::MiniProfiler::Config#methods: 
  authorization_mode       base_url_path=        storage=            
  authorization_mode=      merge!                storage_instance    
  auto_inject              position              storage_instance=   
  auto_inject=             position=             storage_options     
  backtrace_ignores        pre_authorize_cb      storage_options=    
  backtrace_ignores=       pre_authorize_cb=     toggle_shortcut     
  backtrace_includes       skip_paths            toggle_shortcut=    
  backtrace_includes=      skip_paths=           use_existing_jquery 
  backtrace_remove         skip_schema_queries   use_existing_jquery=
  backtrace_remove=        skip_schema_queries=  user_provider       
  backtrace_threshold_ms   start_hidden          user_provider=      
  backtrace_threshold_ms=  start_hidden=       
  base_url_path            storage             
instance variables: @attributes
[3] pry(main)>