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

.optionsObject



7
8
9
# File 'lib/optimizable.rb', line 7

def options
  @options || default_options
end

.parent_controllerObject



15
16
17
# File 'lib/optimizable.rb', line 15

def parent_controller
  @parent_controller || default_parent_controller
end

Class Method Details

.default_optionsObject



11
12
13
# File 'lib/optimizable.rb', line 11

def default_options
  [:description, :title]
end

.default_parent_controllerObject



19
20
21
# File 'lib/optimizable.rb', line 19

def default_parent_controller
  ApplicationController
end