Sha256: f0c6886d59f8b31f892ebdc59c2c1ccfe56fa83d1f44be14902c63b68c030859

Contents?: true

Size: 586 Bytes

Versions: 57

Compression:

Stored size: 586 Bytes

Contents

module OpenStax
  module Api
    module DoorkeeperApplicationIncludes
      # Add some fields to Doorkeeper::Application
      def is_human?
        false
      end
      
      def is_application?
        true
      end
      
      def is_admin?
        false
      end

      def is_anonymous?
        false
      end
    end
  end
end

# This needs to run after the orm is selected in the doorkeeper initializer
OpenStax::Api::Engine.config.after_initialize do
  Doorkeeper::Application.send :include,
                               OpenStax::Api::DoorkeeperApplicationIncludes
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
openstax_api-9.6.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.6.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.5.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.3.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.4.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.4.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.3.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.2.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.1.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.0.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-9.0.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-8.3.2 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-8.3.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-8.3.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-8.2.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-8.1.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-8.1.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-8.0.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-7.1.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-7.1.0 lib/openstax/api/doorkeeper_application_includes.rb