Changeset 2223
- Timestamp:
- Apr 25, 2012, 12:26:07 AM (10 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/api/ApiController.groovy
r2221 r2223 417 417 418 418 // ---- debugging ----- 419 // 420 // this should be removed! :) 419 421 420 422 def moduleCommunicationService -
trunk/grails-app/services/api/ApiService.groovy
r2222 r2223 35 35 36 36 // characters to split on when converting a string to camelCased format 37 static camelCaseSep erators = " |-|_"37 static camelCaseSeparators = " |-|_" 38 38 39 39 // hasMany keys to ignore when flattening domain data … … 132 132 fields.each { field -> 133 133 // get a camelCased version of the field name 134 def name = field.name.split(camelCaseSep erators).collect {it[0].toUpperCase() + it.substring(1)}.join('')134 def name = field.name.split(camelCaseSeparators).collect {it[0].toUpperCase() + it.substring(1)}.join('') 135 135 name = name[0].toLowerCase() + name.substring(1) 136 136
Note: See TracChangeset
for help on using the changeset viewer.