Module: Knock

Defined in:
lib/knock.rb,
lib/knock/engine.rb,
lib/knock/version.rb,
app/model/knock/auth_token.rb,
lib/generators/knock/install_generator.rb,
app/controllers/knock/auth_token_controller.rb,
app/controllers/knock/application_controller.rb

Defined Under Namespace

Modules: Authenticable Classes: ApplicationController, AuthToken, AuthTokenController, Engine, InstallGenerator

Constant Summary collapse

VERSION =
"1.4.2"

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Default way to setup Knock. Run ‘rails generate knock:install` to create a fresh initializer with all configuration values.

Yields:

  • (_self)

Yield Parameters:

  • _self (Knock)

    the object that the method was called on



31
32
33
# File 'lib/knock.rb', line 31

def self.setup
  yield self
end