Module: Rack::DevMark::ActionControllerHelpers

Defined in:
lib/rack/dev-mark/action_controller_helpers.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



13
14
15
# File 'lib/rack/dev-mark/action_controller_helpers.rb', line 13

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#disable_rack_dev_markObject



17
18
19
# File 'lib/rack/dev-mark/action_controller_helpers.rb', line 17

def disable_rack_dev_mark
  Rack::DevMark.tmp_disabled = true
end

#enable_rack_dev_markObject



21
22
23
# File 'lib/rack/dev-mark/action_controller_helpers.rb', line 21

def enable_rack_dev_mark
  Rack::DevMark.tmp_disabled = false
end