sferik/rails_admin — Issue #913: NoMethodError (undefined method `record_count' for #<RailsAdmin::History month: 1, year: 2012>)
Author: alecslupu
Created: 2012-01-04 13:25:07+00:00
State: open

in rails_admin / app / models / rails_admin / history.rb : line 23 on activo branch it should be:

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])

instead of :

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",(1..mstop).to_a, ystop])

Otherwise would raise the error in the subject