Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed rails_admin/issues#913 thanks @alecslupu!

  • Loading branch information...
commit 9746b485e4fc27eb26bd20ddb441ca8418eedfc4 1 parent d486d08
@gunn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/rails_admin/history.rb
View
2  app/models/rails_admin/history.rb
@@ -20,7 +20,7 @@ def self.get_history_for_dates(mstart, mstop, ystart, ystop)
if mstart > mstop && mstart < 12
results = History.find_by_sql(["select count(*) as record_count, year, month from rails_admin_histories where month IN (?) and year = ? group by year, month",
((mstart + 1)..12).to_a, ystart])
- results_two = History.find_by_sql(["select count(*) as number, year, month from rails_admin_histories where month IN (?) and year = ? group by year, month",
+ results_two = History.find_by_sql(["select count(*) as record_count, year, month from rails_admin_histories where month IN (?) and year = ? group by year, month",
(1..mstop).to_a, ystop])
results.concat(results_two)
Please sign in to comment.
Something went wrong with that request. Please try again.