Module: PrintingPress

Defined in:
lib/printing_press.rb,
lib/printing_press/controller.rb,
lib/printing_press/publishable.rb,
lib/printing_press/version_number.rb,
lib/generators/printing_press/publishable/publishable_generator.rb

Defined Under Namespace

Modules: Controller, Model Classes: PublishableGenerator

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.enabled_for_controller=(value) ⇒ Object



10
11
12
# File 'lib/printing_press.rb', line 10

def self.enabled_for_controller=(value)
  printing_press_store[:request_enabled_for_controller] = value
end

.enabled_for_controller?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/printing_press.rb', line 6

def self.enabled_for_controller?
  !!printing_press_store[:request_enabled_for_controller]
end