Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Admin::Users::StatisticsController < AdminController
- def index
- begin
- advts = find_advts()
- if advts.count > 0
- @statistics = StatisticsGenerators::UsersAdvtsStatistics.new(advts, params[:search].try(:[], :group_by)).generate
- @total = advts.count
- else
- @no_info = true
- end
- rescue
- @no_info = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement