Class: Tengine::Core::Setting
- Inherits:
-
Object
- Object
- Tengine::Core::Setting
- Includes:
- Mongoid::Document, FindByName
- Defined in:
- lib/tengine/core/setting.rb
Class Method Summary collapse
Class Method Details
.dsl_version ⇒ Object
15 16 17 18 19 |
# File 'lib/tengine/core/setting.rb', line 15 def dsl_version document = where({:name => "dsl_version"}).first raise Mongoid::Errors::DocumentNotFound.new(Tengine::Core::Setting, "dsl_version", "dsl_version") unless document document.value end |