Module: LoyalPassport

Defined in:
lib/loyal_passport.rb,
lib/loyal_passport/acts.rb,
lib/loyal_passport/utils.rb,
lib/loyal_passport/config.rb,
lib/loyal_passport/engine.rb,
lib/loyal_passport/version.rb,
app/models/loyal_passport/locker.rb,
lib/loyal_passport/devise_helper.rb,
app/models/loyal_passport/homework.rb,
lib/loyal_passport/utils/data_util.rb,
lib/loyal_passport/utils/array_util.rb,
app/models/loyal_passport/oauth_bind.rb,
app/models/loyal_passport/oauth_info.rb,
app/models/loyal_passport/oauth_login.rb,
lib/loyal_passport/acts/acts_as_author_able.rb,
lib/loyal_passport/acts/acts_as_locker_able.rb,
app/helpers/loyal_passport/admin/users_helper.rb,
app/helpers/loyal_passport/application_helper.rb,
app/helpers/loyal_passport/users/unlocks_helper.rb,
app/helpers/loyal_passport/users/sessions_helper.rb,
app/helpers/loyal_passport/users/passwords_helper.rb,
lib/loyal_passport/controllers/controller_extends.rb,
app/controllers/loyal_passport/admin/users_controller.rb,
app/controllers/loyal_passport/application_controller.rb,
app/helpers/loyal_passport/users/confirmations_helper.rb,
app/helpers/loyal_passport/users/registrations_helper.rb,
app/controllers/loyal_passport/users/unlocks_controller.rb,
app/controllers/loyal_passport/users/sessions_controller.rb,
app/controllers/loyal_passport/users/passwords_controller.rb,
app/helpers/loyal_passport/users/omniauth_callbacks_helper.rb,
app/helpers/loyal_passport/admin/loyal_passport/roles_helper.rb,
app/controllers/loyal_passport/users/confirmations_controller.rb,
app/controllers/loyal_passport/users/registrations_controller.rb,
app/controllers/loyal_passport/users/omniauth_callbacks_controller.rb,
app/helpers/loyal_passport/admin/loyal_passport/assignments_helper.rb,
app/controllers/loyal_passport/admin/loyal_passport/roles_controller.rb,
app/controllers/loyal_passport/admin/loyal_passport/assignments_controller.rb

Defined Under Namespace

Modules: ActsAsAuthorAble, ActsAsLockerAble, ApplicationHelper, ControllerExtends, Controllers, DeviseHelper, Users Classes: Ability, ApplicationController, ArrayUtil, Assignment, Config, DataUtil, Engine, Homework, Locker, OauthBind, OauthInfo, OauthLogin, Role, UserParameterSanitizer

Constant Summary collapse

DEFAULT_SUBDOMAIN =

缺省的域名配置 DEFAULT_HOST = ‘passport.ruby800.com’

'passport'
DEFAULT_DB_CONFIG =

缺省的数据库配置

{

}
DEFAULT_WHITE_HOSTS =
{}.freeze
DEFAULT_AUTHORITY_CONFIGS =
{
  'user' => {
    :desc => '用户管理',
    :jobs => {
      'review' => '审核'
    }
  }
}
DEFAULT_ABILITYS =
[
  'LoyalPassport::Ability'
].freeze
DEFAULT_LOGICS =

缺省的逻辑

{
  :open_account_cancel? => false # 开启账户注销
}.freeze
VERSION =
"0.0.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



4
5
6
# File 'lib/loyal_passport/config.rb', line 4

def config
  @config
end

Class Method Details

.configure {|self.config ||= Config.new| ... } ⇒ Object

Yields:



5
6
7
# File 'lib/loyal_passport/config.rb', line 5

def configure
  yield self.config ||= Config.new
end