Class: Peck::Rails::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/peck_on_rails/helper.rb

Class Method Summary collapse

Class Method Details

.init(context, context_type, subject) ⇒ Object



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

def self.init(context, context_type, subject)
  if [:helper].include?(context_type)
    Peck.log("Peck::Rails::Helper.init")
    context.class_eval do
      include subject
    end
  end
end