Class: Wallaby::Configuration
- Inherits:
-
Object
- Object
- Wallaby::Configuration
show all
- Defined in:
- lib/wallaby/configuration.rb
Defined Under Namespace
Classes: Models, Security
Instance Method Summary
collapse
Instance Method Details
#adaptor ⇒ Object
3
4
5
|
# File 'lib/wallaby/configuration.rb', line 3
def adaptor
@adaptor ||= Wallaby::ActiveRecord
end
|
#adaptor=(adaptor) ⇒ Object
7
8
9
10
11
12
|
# File 'lib/wallaby/configuration.rb', line 7
def adaptor=(adaptor)
if @adaptor
fail 'Adaptor has been initialized. Please place adaptor assignment at the top of configuration.'
end
@adaptor = adaptor
end
|
#base_controller ⇒ Object
26
27
28
|
# File 'lib/wallaby/configuration.rb', line 26
def base_controller
@base_controller ||= ::ApplicationController
end
|
#base_controller=(base_controller) ⇒ Object
30
31
32
|
# File 'lib/wallaby/configuration.rb', line 30
def base_controller=(base_controller)
@base_controller = base_controller
end
|
#models ⇒ Object
14
15
16
|
# File 'lib/wallaby/configuration.rb', line 14
def models
@models ||= Models.new
end
|
#models=(models) ⇒ Object
18
19
20
|
# File 'lib/wallaby/configuration.rb', line 18
def models=(models)
self.models.set models
end
|
#security ⇒ Object
22
23
24
|
# File 'lib/wallaby/configuration.rb', line 22
def security
@security ||= Security.new
end
|