Class: RedisDictionary::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RedisDictionary::ApplicationController
- Defined in:
- app/controllers/redis_dictionary/application_controller.rb
Direct Known Subclasses
Class Method Summary collapse
-
.redis_dictionary_authenticate(options = {}) ⇒ Object
Sets a class method to specify a before-filter csalling whatever RedisDictionary.configuration.authentication_method is set to Accepts the usual before_filter optionss.
-
.redis_dictionary_conf ⇒ Object
A helper method to access the RedisDictionary::configuration at the class level.
Class Method Details
.redis_dictionary_authenticate(options = {}) ⇒ Object
Sets a class method to specify a before-filter csalling whatever RedisDictionary.configuration.authentication_method is set to Accepts the usual before_filter optionss
11 12 13 14 15 |
# File 'app/controllers/redis_dictionary/application_controller.rb', line 11 def self.redis_dictionary_authenticate( ={}) if redis_dictionary_conf.authentication_method before_filter redis_dictionary_conf.authentication_method, end end |
.redis_dictionary_conf ⇒ Object
A helper method to access the RedisDictionary::configuration at the class level
19 20 21 |
# File 'app/controllers/redis_dictionary/application_controller.rb', line 19 def self.redis_dictionary_conf RedisDictionary::configuration end |