Class: Peck::Rails::Helper

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

Class Method Summary collapse

Class Method Details

.init(context, context_type, subject) ⇒ Object



31
32
33
34
35
36
37
38
# File 'lib/peck_on_rails.rb', line 31

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