Class: Ixtlan::Configuration::Configuration
- Inherits:
-
Object
- Object
- Ixtlan::Configuration::Configuration
- Includes:
- DataMapper::Resource
- Defined in:
- lib/ixtlan/configuration/resource.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.instance ⇒ Object
87 88 89 |
# File 'lib/ixtlan/configuration/resource.rb', line 87 def self.instance self.first || self.new end |
.storage_name(arg = :default) ⇒ Object
27 28 29 |
# File 'lib/ixtlan/configuration/resource.rb', line 27 def self.storage_name( arg = :default ) 'ixtlan_configuration' end |
Instance Method Details
#errors_base_url ⇒ Object
49 50 51 |
# File 'lib/ixtlan/configuration/resource.rb', line 49 def errors_base_url base_url + errors_base_path end |
#reset_encrypted_cookie_secret ⇒ Object
64 65 66 |
# File 'lib/ixtlan/configuration/resource.rb', line 64 def self. = OpenSSL::Random.random_bytes(16).inspect end |
#to_s ⇒ Object
83 84 85 |
# File 'lib/ixtlan/configuration/resource.rb', line 83 def to_s "Configuration( #{updated_at} by #{modified_by} )" end |