Module: ActiveHelper::ClassMethods

Includes:
GenericMethods
Defined in:
lib/active_helper.rb

Instance Method Summary collapse

Methods included from GenericMethods

#use_for

Instance Method Details

#import(*classes) ⇒ Object

Imports the provided methods from classes into the target (the receiver). All imported helper methods in the target will be delegated back to the helpers.

Example:

class View
  uses UrlHelper, DataMapperHelper
end


65
66
67
68
# File 'lib/active_helper.rb', line 65

def import(*classes)
  setup_delegator_strategy!
  use_for(classes, self)
end