Module: Rails2ViewToggler

Defined in:
lib/rails2_view_toggler.rb

Defined Under Namespace

Modules: PartialTogglingSupport

Class Method Summary collapse

Class Method Details

.enable(opts) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/rails2_view_toggler.rb', line 7

def enable(opts)
  Rails2ViewToggler.mapping ||= {}

  Rails2ViewToggler.mapping.merge!(opts)

  ::ActionView::Base.module_eval do
    include Rails2ViewToggler::PartialTogglingSupport
  end
end