Module: Doorkeeper::ApplicationMixin

Extended by:
ActiveSupport::Concern
Includes:
Models::Scopes, OAuth::Helpers
Included in:
Application
Defined in:
lib/doorkeeper/models/application_mixin.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from Models::Scopes

#includes_scope?, #scopes_string

Instance Method Details

#original_scopesObject


33
# File 'lib/doorkeeper/models/application_mixin.rb', line 33

alias_method :original_scopes, :scopes

#scopesObject


34
35
36
37
38
39
40
41
42
43
# File 'lib/doorkeeper/models/application_mixin.rb', line 34

def scopes
  if has_scopes?
    original_scopes
  else
    fail NameError, "Missing column: `applications.scopes`.", <<-MSG.squish
If you are using ActiveRecord run `rails generate doorkeeper:application_scopes
&& rake db:migrate` to add it.
    MSG
  end
end