evazion
a5ab25d0ba
pagination: avoid counting pages outside searches.
...
Replace this common pattern in controllers:
@tags = Tag.search(search_params).paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
with this:
@tags = Tag.paginated_search(params)
`search_count` is used to skip doing a full page count when we're not
doing a search (on the assumption that the number of results will be
high when not constrained by a search). We didn't do this consistently
though. Refactor to do this in every controller.
2019-10-07 22:02:03 -05:00
..
2018-05-15 14:19:45 -07:00
2019-10-07 22:02:03 -05:00
2019-09-01 13:10:37 -05:00
2019-09-01 13:10:37 -05:00
2019-08-29 20:44:33 -05:00
2019-09-01 13:10:37 -05:00
2019-09-06 16:18:29 -05:00
2019-09-01 13:10:37 -05:00
2019-09-01 13:10:37 -05:00
2019-09-01 13:10:37 -05:00
2019-09-08 23:28:02 -05:00
2019-08-04 14:40:37 -05:00
2019-09-08 23:28:02 -05:00
2019-09-01 13:10:37 -05:00
2019-08-12 19:20:33 -05:00
2019-08-22 21:28:56 -05:00
2019-09-08 23:28:02 -05:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-09-08 23:28:02 -05:00
2019-09-01 13:10:37 -05:00
2019-09-01 13:10:37 -05:00
2019-09-27 21:12:53 -05:00
2018-05-10 11:18:02 -07:00
2019-09-01 13:10:37 -05:00
2019-09-08 23:28:02 -05:00
2018-06-14 17:10:07 -07:00
2019-09-26 22:14:29 -05:00
2019-09-01 13:10:37 -05:00
2019-09-08 23:28:02 -05:00
2019-09-08 23:28:02 -05:00
2019-09-01 13:10:37 -05:00
2019-10-06 00:42:51 -05:00
2019-08-29 20:44:33 -05:00
2018-12-14 18:08:43 -06:00
2019-09-08 23:28:02 -05:00
2017-01-23 18:07:52 -06:00
2019-08-29 20:44:33 -05:00
2019-08-18 11:24:42 -05:00
2019-08-31 20:09:41 -05:00
2019-09-28 12:06:42 -05:00
2019-01-22 14:57:31 -08:00
2019-09-22 23:38:48 -05:00
2019-10-01 22:51:40 -05:00
2019-10-01 22:51:40 -05:00
2019-09-17 01:30:28 -05:00
2019-09-17 01:30:28 -05:00
2019-09-26 22:14:48 -05:00
2017-06-16 13:28:31 -05:00
2019-09-08 23:28:02 -05:00
2019-09-01 13:10:37 -05:00
2019-10-01 00:45:45 -05:00
2019-08-04 15:45:05 -05:00
2019-10-07 13:54:52 -07:00
2019-08-29 20:44:33 -05:00
2019-09-08 23:28:02 -05:00