Permalink
Browse files

add some defaults

  • Loading branch information...
1 parent 0738f6a commit e7f983ca97a8c81704704d607600fd7f28bcc3ef @mkristian committed Nov 18, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/generators/ixtlan/templates/dynamic.rb
@@ -12,15 +12,15 @@
<%= application_name %>::Application.config.error_dumper.base_url = config.errors_base_url
<%= application_name %>::Application.config.error_dumper.from_email = config.errors_from_email
<%= application_name %>::Application.config.error_dumper.to_emails = config.errors_to_emails
- <%= application_name %>::Application.config.error_dumper.keep_dumps = config.errors_keep_dumps # days
+ <%= application_name %>::Application.config.error_dumper.keep_dumps = config.errors_keep_dumps || 30 # days
end
<% end -%>
<% if defined? Ixtlan::Sessions -%>
# idle session timeout configuration (in minutes)
# -----------------------------------------------
<%= application_name %>::Application.config.configuration_manager.register("session_idle_timeout") do |config|
- <%= application_name %>::Application.config.idle_session_timeout = config.idle_session_timeout
+ <%= application_name %>::Application.config.idle_session_timeout = config.idle_session_timeout || 15
end
<% end -%>
<% if defined? Ixtlan::Audit -%>
@@ -32,6 +32,6 @@
# <%= application_name %>::Application.config.audit_manager.username_method = :username # default: :login
<%= application_name %>::Application.config.configuration_manager.register("audit_manager") do |config|
- <%= application_name %>::Application.config.audit_manager.keep_logs = config.audits_keep_logs # days
+ <%= application_name %>::Application.config.audit_manager.keep_logs = config.audits_keep_logs || 90 # days
end
<% end -%>

0 comments on commit e7f983c

Please sign in to comment.