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-7.0.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.1.5 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.1.4 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.1.3 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.1.2 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.1.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.1.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.0.2 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.0.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-6.0.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.5.5 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.5.4 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.5.3 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.5.2 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.5.1 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.5.0 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.4.6 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.4.5 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.4.4 lib/openstax/api/doorkeeper_application_includes.rb
openstax_api-5.4.3 lib/openstax/api/doorkeeper_application_includes.rb