Sha256: b7b9ab59c6af5c1e8f671b0e3f4f81b306e52bc729b0cb1d90c61b5ea2e5b6d2
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
module Lit class ApplicationController < ActionController::Base unless respond_to?(:before_action) alias_method :before_action, :before_filter alias_method :after_action, :after_filter end before_action :authenticate before_action :stop_hits_counter after_action :restore_hits_counter private def authenticate return unless Lit.authentication_function.present? send(Lit.authentication_function) end def stop_hits_counter Lit.init.cache.stop_hits_counter end def restore_hits_counter Lit.init.cache.restore_hits_counter end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lit-0.3.1 | app/controllers/lit/application_controller.rb |
lit-0.3.0 | app/controllers/lit/application_controller.rb |