Sha256: c180901bffed985826ec947fe5b1cec421fd0f92a280b8884398ffe59730edd0
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
module Restfulie module Server module ActionView module TemplateHandlers #:nodoc: autoload :Tokamak, 'restfulie/server/action_view/template_handlers/tokamak' # It is needed to explicitly call 'activate!' to install the Tokamak # template handler def self.activate! if defined? ::ActionView::Template and ::ActionView::Template.respond_to?(:register_template_handler) ::ActionView::Template else ::ActionView::Base end.register_template_handler(:tokamak, Restfulie::Server::ActionView::TemplateHandlers::Tokamak) if defined? ::ActionController::Base ::ActionController::Base.exempt_from_layout :tokamak end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restfulie-0.9.1 | lib/restfulie/server/action_view/template_handlers.rb |
restfulie-0.8.1 | lib/restfulie/server/action_view/template_handlers.rb |