Module: Packrat

Defined in:
lib/packrat.rb,
lib/packrat/view_helpers.rb

Defined Under Namespace

Modules: ViewHelpers

Class Method Summary collapse

Class Method Details

.enableObject



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

def enable
  enable_actionpack
end

.enable_actionpackObject



17
18
19
20
21
# File 'lib/packrat.rb', line 17

def enable_actionpack
  return if ActionView::Base.method_defined? :packrat_css
  require 'packrat/view_helpers'
  ActionView::Base.send :include, ViewHelpers
end