Sha256: bf4bff588786a12083f446b5598192209fc8e12f73b85577c046e99a1d25d08f
Contents?: true
Size: 656 Bytes
Versions: 4
Compression:
Stored size: 656 Bytes
Contents
require "active_support/core_ext/time" require "socrates/logger" require "socrates/storage/memory" module Socrates def self.config @config ||= Configuration.new end def self.configure yield(config) end class Configuration attr_accessor :view_path attr_accessor :storage attr_accessor :error_message attr_accessor :expired_timeout # seconds attr_accessor :logger def initialize @storage = Storage::Memory.new @error_message = "Sorry, something went wrong. We'll have to start over..." @expired_timeout = 30.minutes @logger = Socrates::Logger.default end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
socrates-0.1.12 | lib/socrates/configuration.rb |
socrates-0.1.11 | lib/socrates/configuration.rb |
socrates-0.1.10 | lib/socrates/configuration.rb |
socrates-0.1.9 | lib/socrates/configuration.rb |