Method: Cuca::Config#initialize
- Defined in:
- lib/cuca/config.rb
#initialize ⇒ Config
some default stuff
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/cuca/config.rb', line 43 def initialize self['include_directories'] = %w{_controllers _widgets _layouts} self['log_level'] = 3 self['magic_prefix'] = '__default_' self['session_key'] = 'cuca_session' self['session_prefix'] = 'cuca.' self['session_valid'] = 3600*24 self['view_directory'] = 'app/_views' # where to find views for the view/erb generator self['http_404'] = '404.html' self['http_500'] = '500.html' self['default_mime_type'] = 'text/html' self['display_errors'] = true self['http_static_content_expires'] = 300 # expires http header for static content (only if served by the dispatcher) end |