Module: AuthAssistant

Defined in:
lib/auth-assistant.rb,
lib/auth_assistant/helpers/roles.rb,
lib/auth_assistant/view/rest_link.rb,
lib/auth_assistant/helpers/localhost.rb,
lib/auth_assistant/helpers/user_role.rb,
lib/auth_assistant/model/user_config.rb,
lib/auth_assistant/view/session_link.rb,
lib/auth_assistant/helpers/admin_role.rb,
lib/auth_assistant/view/auth_menu_item.rb,
lib/auth_assistant/translate/authlabels.rb,
lib/auth_assistant/role_strategies/shared.rb,
lib/auth_assistant/view/registration_link.rb,
lib/auth_assistant/role_strategies/role_field.rb,
lib/auth_assistant/role_strategies/roles_mask.rb,
lib/auth_assistant/role_strategies/admin_field.rb,
lib/auth_assistant/role_strategies/roles_field.rb,
lib/auth_assistant/role_strategies/role_assignment.rb,
lib/auth_assistant/role_strategies/multi_role_assignment.rb

Defined Under Namespace

Modules: Helpers, RoleStrategy, ViewHelpers Classes: Configuration

Class Method Summary collapse

Class Method Details

.configure(&block) ⇒ Object



5
6
7
# File 'lib/auth_assistant/model/user_config.rb', line 5

def self.configure(&block)
  block.arity < 1 ? AuthAssistant::Configuration.instance.class_eval(&block) : block.call(AuthAssistant::Configuration.instance)   
end