Module: Viewtastic::Activation

Defined in:
lib/viewtastic/activation.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

Lets Viewtastic know about the controller object via a before filter, AKA “activates” viewtastic. Borrowed from Authlogic.



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

def self.included(klass) # :nodoc:
  klass.prepend_before_filter :activate_viewtastic
end