Module: Optimizable
- Defined in:
- lib/optimizable.rb,
lib/optimizable/engine.rb,
lib/optimizable/version.rb,
app/models/optimizable/optimization.rb,
app/helpers/optimizable/optimizations_helper.rb,
app/controllers/optimizable/optimizations_controller.rb
Defined Under Namespace
Modules: OptimizationsHelper
Classes: Engine, Optimization, OptimizationsController
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.options ⇒ Object
7
8
9
|
# File 'lib/optimizable.rb', line 7
def options
@options || default_options
end
|
.parent_controller ⇒ Object
15
16
17
|
# File 'lib/optimizable.rb', line 15
def parent_controller
@parent_controller || default_parent_controller
end
|
Class Method Details
.default_options ⇒ Object
11
12
13
|
# File 'lib/optimizable.rb', line 11
def default_options
[:description, :title]
end
|
.default_parent_controller ⇒ Object
19
20
21
|
# File 'lib/optimizable.rb', line 19
def default_parent_controller
ApplicationController
end
|