Sha256: 18e12f8506e68b71ecbd4fd2defbff4618c36d832ebdecdee0d4508956d880da

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

module Lit
  class ApplicationController < ActionController::Base
    before_filter :authenticate
    before_filter :stop_hits_counter
    after_filter :restore_hits_counter

    private
      def authenticate
        if Lit.authentication_function.present?
          send(Lit.authentication_function)
        end
      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

6 entries across 6 versions & 1 rubygems

Version Path
lit-0.2.4 app/controllers/lit/application_controller.rb
lit-0.2.3 app/controllers/lit/application_controller.rb
lit-0.2.2 app/controllers/lit/application_controller.rb
lit-0.2.1 app/controllers/lit/application_controller.rb
lit-0.2.0 app/controllers/lit/application_controller.rb
lit-0.1.0 app/controllers/lit/application_controller.rb