Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added sorting information to links

  • Loading branch information...
commit 96af3eb33d2021e385781c12bf304576f3fb24ea 1 parent 87f7565
@jettro authored
View
1  grails-app/domain/Environment.groovy
@@ -14,6 +14,7 @@ class Environment {
static mapping = {
lastDeploy type:PersistentDateTime
+ links sort:'title'
}
def String toString() {
View
6 grails-app/domain/Link.groovy
@@ -4,8 +4,12 @@ class Link {
static constraints = {
title(blank:false,maxSize:50)
- url(blank:false,maxSize:150)
+ url(url:true, nullable:false)
}
static belongsTo = [environment:Environment]
+
+ static mapping = {
+ sort title:"asc"
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.