Skip to content

Commit

Permalink
API method uses options instead of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Faulkner authored and wvanbergen committed Oct 7, 2009
1 parent c81a7e9 commit 5e0e2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/request_log_analyzer/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def self.build(options)
output_object = %w[File StringIO].include?(options[:file].class.name) ? options[:file] : File.new(options[:file], "w+")
output_args = {:width => 80, :color => false, :characters => :ascii, :sort => output_sort, :amount => output_amount }
elsif options[:mail]
output_object = RequestLogAnalyzer::Mailer.new(arguments[:mail])
output_object = RequestLogAnalyzer::Mailer.new(options[:mail])
output_args = {:width => 80, :color => false, :characters => :ascii, :sort => output_sort, :amount => output_amount }
else
output_object = STDOUT
Expand Down

0 comments on commit 5e0e2d7

Please sign in to comment.