Sha256: 89495e016a199c62a556e1f6ec7f2190af1b3a1f0f66a1c8742c99386f346a8e
Contents?: true
Size: 1.85 KB
Versions: 6
Compression:
Stored size: 1.85 KB
Contents
module Ixtlan module Configuration class Configuration include DataMapper::Resource def self.storage_name(arg) 'ixtlan_configuration' end property :id, Serial if defined? Ixtlan::Session property :idle_session_timeout, Integer, :required => true, :default => 15 end if defined? Ixtlan::Audit property :audits_keep_logs, Integer, :required => true, :default => 30 end if defined? Ixtlan::Errors property :errors_keep_dumps, Integer, :required => true, :default => 30 property :errors_base_url, String, :required => false, :length => 128, :default => "http://localhost:3000/errors" property :errors_from_email, String, :required => false, :length => 128, :default => 'no-reply@example.com' property :errors_to_emails, String, :required => false, :length => 255, :default => 'developer@example.com' end if defined? Ixtlan::Remote property :users_url, String, :required => false, :length => 128, :default => "http://localhost:3000" property :users_token, String, :required => true, :length => 64, :default => "behappy" end if defined? Ixtlan::Gettext property :flash_url, String, :required => false, :length => 128, :default => "http://localhost:3000" property :translations_url, String, :required => false, :length => 128, :default => "http://localhost:3000" property :translations_token, String, :required => true, :length => 64, :default => "be happy" end timestamps :at if defined? ::User belongs_to :modified_by, ::User else belongs_to :modified_by, Ixtlan::UserManagement::User end def to_s "Configuration( #{updated_at} by #{modified_by} )" end def self.instance self.first || self.new end end end end
Version data entries
6 entries across 6 versions & 1 rubygems