Permalink
Browse files

Fixed pagination without 'fixtaglib' for grails 2.4

g:paginate was moved from RenderTaglib to UrlMappingTagLib in 2.4:
grails/grails-core@7a031f2

fixes #113
  • Loading branch information...
1 parent c0439e8 commit b305622b6b33283b131d9988a7f8f6f4fe1fb481 @legart legart committed Jul 8, 2014
View
@@ -216,6 +216,9 @@ See http://getbootstrap.com/css/ for the updated documentation.
# History
+3.2.1
+- Fixed g:paginate for Grails 2.4
+
3.2.0
- Upgraded to Bootstrap 3.2.0
@@ -1,5 +1,5 @@
class TwitterBootstrapGrailsPlugin {
- def version = "3.2.0"
+ def version = "3.2.1"
def grailsVersion = "1.3.7 > *"
def author = "Karol Balejko"
def authorEmail = "kb@groovydev.com"
@@ -32,7 +32,7 @@ class TwitterBootstrapTagLib {
def configTabLib = grailsApplication.config.grails.plugins.twitterbootstrap.fixtaglib
if (!configTabLib) {
- def renderTagLib = grailsApplication.mainContext.getBean('org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib')
+ def renderTagLib = grailsApplication.mainContext.getBean('org.codehaus.groovy.grails.plugins.web.taglib.UrlMappingTagLib')
renderTagLib.paginate.call(attrs)
return
}

1 comment on commit b305622

Collaborator

ocomsoft commented on b305622 Nov 19, 2014

This will not work on Older versions of Grails ie Grails 2.2.1

Please sign in to comment.