Led & Sustained by

G2one Logo

Developed with

Intellij

Powered by

Spring

Acts As Taggable Plugin

ActsAsTaggable Plugin

It add the acts_as_taggable ability to domain class.

The domain class just implement the Taggable interface, then it has the methods below:

class Book implements Taggable
{ ... }

def book = new Book()
...
book.addTag( "java")
book.addTag( "groovy")
book.addTag( "grails")

assertEquals( "java groovy grails", book.tags)

book.removeTag( "groovy")

assertEquals( "java grails", book.tags)

book.tags = "java groovy"
book.removeTag("java")

assertEquals( "groovy", book.tags)

The source repository is http://code.google.com/p/grailsactsastaggable/

</