Sha256: fab9a48110de84fbdd7aef677d47d925057d2673d191ef0219bdee9142e72de5

Contents?: true

Size: 760 Bytes

Versions: 5

Compression:

Stored size: 760 Bytes

Contents

# encoding: utf-8

module RedisDictionary
  class ApplicationController < ActionController::Base

    layout RedisDictionary.configuration.layout if RedisDictionary.configuration.layout

    # Sets a class method to specify a before-filter csalling
    # whatever RedisDictionary.configuration.authentication_method is set to
    # Accepts the usual before_filter optionss
    def self.redis_dictionary_authenticate(options ={})
      if redis_dictionary_conf.authentication_method
        before_filter redis_dictionary_conf.authentication_method, options
      end
    end

    # A helper method to access the RedisDictionary::configuration
    # at the class level
    def self.redis_dictionary_conf
      RedisDictionary::configuration
    end


  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
redis_dictionary-1.0.2 app/controllers/redis_dictionary/application_controller.rb
redis_dictionary-1.0.1 app/controllers/redis_dictionary/application_controller.rb
redis_dictionary-1.0.0 app/controllers/redis_dictionary/application_controller.rb
redis_dictionary-0.9.9 app/controllers/redis_dictionary/application_controller.rb
redis_dictionary-0.9.8 app/controllers/redis_dictionary/application_controller.rb