Skip to content

Commit

Permalink
Added support for domain class string field values that should not be…
Browse files Browse the repository at this point in the history
… interpreted
  • Loading branch information
jerleng committed Mar 8, 2016
1 parent eb93db1 commit 15c1d4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SeedMeGrailsPlugin.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class SeedMeGrailsPlugin {

def version = "0.7.1"
def version = "0.7.2"
def grailsVersion = "2.0 > *"
def pluginExcludes = [
"src/seed/*",
Expand Down
4 changes: 2 additions & 2 deletions grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ grails.project.dependency.resolution = {
build ':release:2.2.1', ':rest-client-builder:1.0.3', {
export = false
}

/*
test(":build-test-data:2.0.6") {
export = false
}

*/
compile(":hibernate:$grailsVersion") { // hibernate only for integration tests
export = false // don't make this available to the client app
}
Expand Down
2 changes: 2 additions & 0 deletions grails-app/services/seedme/SeedService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ class SeedService {
if(seedObject) {
data[key] = seedObject
}
} else if (value instanceof Map && value._literal == true) {
data[key] = value.value
} else if(value instanceof CharSequence && value.toString().indexOf('$') >= 0) {
data[key] = new GStringTemplateEngine().createTemplate(value.toString()).make(getDomainBindingsForGString()).toString()
} else if(value instanceof Closure) {
Expand Down

0 comments on commit 15c1d4e

Please sign in to comment.