Module: ActiveEnquo
- Defined in:
- lib/active_enquo.rb
Defined Under Namespace
Modules: ActiveRecord, Postgres
Classes: Initializer, Type
Constant Summary
collapse
- RootKey =
Enquo::RootKey
Class Method Summary
collapse
Class Method Details
.root ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/active_enquo.rb', line 13
def self.root
if @root.nil?
raise RuntimeError, "The ActiveEnquo root key must be set before calling ActiveEnquo.root"
end
@root
end
|
.root_key=(k) ⇒ Object
9
10
11
|
# File 'lib/active_enquo.rb', line 9
def self.root_key=(k)
@root = Enquo::Root.new(k)
end
|