lib/rapidoc/config.rb in rapidoc-0.0.5 vs lib/rapidoc/config.rb in rapidoc-0.0.6
- old
+ new
@@ -100,9 +100,13 @@
def default_response_formats
@@config['response_formats'] if @@config
end
+ def trace?
+ ( @@config and @@config['trace'] == true ) ? true : false
+ end
+
private
def target_dir_from_config
if @@config and @@config.has_key?( "doc_route" )
File.join(::Rails.root.to_s, @@config['doc_route'] )