Changeset 2200 for trunk/grails-app/services/api/ApiService.groovy
- Timestamp:
- Mar 30, 2012, 5:17:57 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/api/ApiService.groovy
r2199 r2200 23 23 static final String API_SECRET = "th!s_sH0uld^Pr0bab7y_m0v3_t%_th3_uSeR_d0Ma!n_ins7ead!" 24 24 static transactional = false 25 25 26 def moduleCommunicationService 26 27 … … 32 33 */ 33 34 def validateRequest(String deviceID, String validation) { 35 return true 36 34 37 // disable validation check on development and ci 35 38 if (['development', 'ci'].contains(grails.util.GrailsUtil.environment)) { … … 77 80 item['token'] = it.getToken() 78 81 } else if (it.respondsTo('giveUUID')) { 79 // ...while other implement giveUUID82 // ...while others implement giveUUID 80 83 item['token'] = it.giveUUID() 81 84 } else { 82 // and others don't at all... :S 85 // and others don't at all, so far 86 // the consistency... 83 87 item['id'] = it.id 84 88 }
Note: See TracChangeset
for help on using the changeset viewer.