Ignore:
Timestamp:
Apr 25, 2012, 12:26:07 AM (10 years ago)
Author:
work@…
Message:
  • added a debugging line
  • fixed spelling error in variable name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/api/ApiService.groovy

    r2222 r2223  
    3535
    3636    // characters to split on when converting a string to camelCased format
    37     static camelCaseSeperators = " |-|_"
     37    static camelCaseSeparators = " |-|_"
    3838
    3939    // hasMany keys to ignore when flattening domain data
     
    132132            fields.each { field ->
    133133                // get a camelCased version of the field name
    134                 def name = field.name.split(camelCaseSeperators).collect {it[0].toUpperCase() + it.substring(1)}.join('')
     134                def name = field.name.split(camelCaseSeparators).collect {it[0].toUpperCase() + it.substring(1)}.join('')
    135135                    name = name[0].toLowerCase() + name.substring(1)
    136136
Note: See TracChangeset for help on using the changeset viewer.