source: trunk/grails-app/conf/BaseFilters.groovy @ 29

Last change on this file since 29 was 29, checked in by duh, 13 years ago
  • created configurable styles (handled in conf/BaseFilters.groovy)
  • moved all styles into a default style (css/default_style images/default_style)
File size: 548 bytes
Line 
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$
13 * $Author$
14 * $Date$
15 */
16class BaseFilters {
17    // define filters
18    def filters = {
19        loginCheck(controller:'*', action:'*') {
20            // before every execution
21            before = {
22                // set the style in the session
23                //if (!session.style) {
24                    session.style = 'default_style'
25                //}
26            }
27        }
28    }
29}
30
Note: See TracBrowser for help on using the repository browser.