Commit Graph

17 Commits

Author SHA1 Message Date
Akira Matsuda acbcbc8beb Format 2018-11-11 13:04:43 +09:00
Yuki Nishijima a781f644ac Remove the need to call #presence to show a fall-back HTML
Right now, the #paginate method doesn't show anything when there's only one
page. While this is expected, some times there's a case where showing a fall
back message is appropriate. In order to do so, a subsequent #presence call is
needed because the #paginate method always returns a string. This commit adds a
 #presence call to the #render method, so it'll be a little cleaner to show a
fall-back message.

  related: https://github.com/kaminari/kaminari/pull/785
2017-12-23 15:48:48 -05:00
Akira Matsuda 4efe5fd2bd 2017-06-06 17:27:22 +09:00
Anthony Alberto 9e181739e8 Issue #310 fixed. Refactored code to use a single method to know if a tag page should be displayed. 2016-12-08 20:40:26 +09:00
Akira Matsuda 106273c202 2016-12-08 15:58:56 +09:00
Akira Matsuda 18c3b609c3 Let's see if code climate still claims that this method is complex 2016-12-08 12:42:18 +09:00
Akira Matsuda 3a6afa6a8d 📝 Documentation 2016-12-08 12:31:07 +09:00
Akira Matsuda feab7a152c For clarity 2016-12-08 12:26:59 +09:00
Akira Matsuda bbac63181c 2016-12-08 11:07:15 +09:00
Akira Matsuda f4e6a9ce7a 2016-12-08 10:46:44 +09:00
Akira Matsuda d0fb081741 Better LogSubscriber monkey-patch using Thread.current 2016-11-28 07:31:10 +09:00
Akira Matsuda 8763cad3d7 Less object creation 2016-11-23 12:21:46 +09:00
Akira Matsuda 4da42bd0bd kwargsify Paginator#initialize for API explicitness and code readability 2016-11-23 12:21:28 +09:00
Akira Matsuda 721654ca75 #️⃣ 🚀 🔞 2016-11-22 22:16:57 +09:00
Akira Matsuda 2ddb2563ed Preserve source location of the tag helpers 2016-11-07 12:45:46 +09:00
Akira Matsuda 106cf8071c ❄️ 2016-10-12 05:45:39 +09:00
Akira Matsuda bb0226c075 Move core code to kaminari-core gem 2016-10-04 21:59:34 +09:00