Module: HtmldocRails

Defined in:
lib/htmldoc_rails.rb,
lib/htmldoc_rails/version.rb,
lib/htmldoc_rails/controller.rb

Defined Under Namespace

Modules: Controller

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.action_viewObject



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

def action_view
  ActionPack::VERSION::MAJOR == 1 ? ActionView::Base : ActionView::Template
end

.debug=(mode) ⇒ Object



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

def debug=(mode)
  @debug = mode
end

.debug?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/htmldoc_rails.rb', line 13

def debug?
  @debug
end