Module: ActionView::Template::Handlers::Compilable

Defined in:
lib/action_view/template/handler.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
# File 'lib/action_view/template/handler.rb', line 9

def self.included(base)
  ActiveSupport::Deprecation.warn "Including Compilable in your template handler is deprecated. " <<
    "Since Rails 3, all the API your template handler needs to implement is to respond to #call."
  base.extend(ClassMethods)
end

Instance Method Details

#compile(template) ⇒ Object



21
22
23
# File 'lib/action_view/template/handler.rb', line 21

def compile(template)
  raise "Need to implement #{self.class.name}#compile(template)"
end