Last change
on this file since 33 was
33,
checked in by duh, 13 years ago
|
-set keyword expansion
|
-
Property svn:keywords set to
Date Author Rev
|
File size:
553 bytes
|
Rev | Line | |
---|
[29] | 1 | /** |
---|
| 2 | * Base Filters |
---|
| 3 | * @Author Jeroen Wesbeek |
---|
| 4 | * @Since 20091026 |
---|
| 5 | * @see main.gsp |
---|
| 6 | * @see http://grails.org/Filters |
---|
| 7 | * @Description |
---|
| 8 | * |
---|
| 9 | * These filters contain generic logic for -every- page request. |
---|
| 10 | * |
---|
| 11 | * Revision information: |
---|
| 12 | * $Rev: 33 $ |
---|
| 13 | * $Author: duh $ |
---|
| 14 | * $Date: 2009-10-27 10:38:38 +0000 (di, 27 okt 2009) $ |
---|
| 15 | */ |
---|
| 16 | class BaseFilters { |
---|
| 17 | // define filters |
---|
| 18 | def filters = { |
---|
[32] | 19 | defineStyle(controller:'*', action:'*') { |
---|
[29] | 20 | // before every execution |
---|
| 21 | before = { |
---|
[32] | 22 | // set the default style in the session |
---|
| 23 | if (!session.style) { |
---|
[29] | 24 | session.style = 'default_style' |
---|
[32] | 25 | } |
---|
[29] | 26 | } |
---|
| 27 | } |
---|
| 28 | } |
---|
| 29 | } |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.