Skip to content

Commit

Permalink
Converting ActiveRecord::Relation to array.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokam authored and Nikunj Limbaseeya committed Oct 3, 2011
1 parent 7cf4fff commit 6d96945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/admin_panel/app/models/url_time_sample.rb
Expand Up @@ -40,6 +40,7 @@ def get_url_calls_data(app_id, from_date, to_date, type)
else
url_samples = get_top_db_consuming_url_data(app_id, start_time, end_time)
end
url_samples = url_samples.to_a
if url_samples.size > 0
url_samples.each do |url_sample|
urls << url_sample.url
Expand Down

0 comments on commit 6d96945

Please sign in to comment.