Changeset 7 for trunk/grails-app/controllers/DebugController.groovy
- Timestamp:
- Oct 14, 2009, 12:51:46 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
stacktrace.log
-
Property
svn:ignore
set to
-
trunk/grails-app/controllers/DebugController.groovy
r6 r7 1 import grails.util.GrailsUtil 2 1 3 /** 2 4 * Debug Controller … … 14 16 */ 15 17 class DebugController { 16 def scaffold = true; 17 def index = { render('nothing to see here :)') } 18 /** 19 * Turn scaffolding on or off 20 */ 21 def scaffold = (GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT && this.class.name != 'DebugController'); 22 23 /** 24 * Render output to the browser, overload this method to suit your needs 25 */ 26 def index = { 27 render(sprintf("%s @ %s environment :: nothing to see here! :)",this.class.name,GrailsUtil.environment)); 28 } 18 29 }
Note: See TracChangeset
for help on using the changeset viewer.