Class: Locomotive::BasicAuth::Plugin
- Inherits:
-
Object
- Object
- Locomotive::BasicAuth::Plugin
- Includes:
- Plugin
- Defined in:
- lib/locomotive/basic_auth/plugin.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_plugin_id ⇒ Object
19 20 21 |
# File 'lib/locomotive/basic_auth/plugin.rb', line 19 def self.default_plugin_id 'basic_auth' end |
Instance Method Details
#authenticate_if_needed ⇒ Object
27 28 29 |
# File 'lib/locomotive/basic_auth/plugin.rb', line 27 def authenticate_if_needed authenticate if need_to_authenticate? end |
#config_template_file ⇒ Object
23 24 25 |
# File 'lib/locomotive/basic_auth/plugin.rb', line 23 def config_template_file File.join(File.dirname(__FILE__), 'plugin', 'config.haml') end |