Skip to content

Commit

Permalink
[ci skip] Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Apr 1, 2019
1 parent dd2d77f commit 675f737
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/doorkeeper/config.rb
Expand Up @@ -406,8 +406,8 @@ def token_grant_types
end

def allow_blank_redirect_uri?
grant_flows.exclude?('authorization_code') &&
grant_flows.exclude?('implicit')
grant_flows.exclude?("authorization_code") &&
grant_flows.exclude?("implicit")
end

def option_defined?(name)
Expand Down
3 changes: 3 additions & 0 deletions lib/generators/doorkeeper/application_owner_generator.rb
Expand Up @@ -4,6 +4,9 @@
require "rails/generators/active_record"

module Doorkeeper
# Generates migration to add reference to owner of the
# Doorkeeper application.
#
class ApplicationOwnerGenerator < ::Rails::Generators::Base
include ::Rails::Generators::Migration
source_root File.expand_path("templates", __dir__)
Expand Down
Expand Up @@ -4,6 +4,9 @@
require "rails/generators/active_record"

module Doorkeeper
# Generates migration to add confidential column to Doorkeeper
# applications table.
#
class ConfidentialApplicationsGenerator < ::Rails::Generators::Base
include ::Rails::Generators::Migration
source_root File.expand_path("templates", __dir__)
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/doorkeeper/install_generator.rb
Expand Up @@ -4,6 +4,8 @@
require "rails/generators/active_record"

module Doorkeeper
# Setup doorkeeper into Rails application: locales, routes, etc.
#
class InstallGenerator < ::Rails::Generators::Base
include ::Rails::Generators::Migration
source_root File.expand_path("templates", __dir__)
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/doorkeeper/migration_generator.rb
Expand Up @@ -4,6 +4,8 @@
require "rails/generators/active_record"

module Doorkeeper
# Copies main Doorkeeper migration into parent Rails application.
#
class MigrationGenerator < ::Rails::Generators::Base
include ::Rails::Generators::Migration
source_root File.expand_path("templates", __dir__)
Expand Down
3 changes: 3 additions & 0 deletions lib/generators/doorkeeper/pkce_generator.rb
Expand Up @@ -4,6 +4,9 @@
require "rails/generators/active_record"

module Doorkeeper
# Generates migration with PKCE required database columns for
# Doorkeeper tables.
#
class PkceGenerator < ::Rails::Generators::Base
include ::Rails::Generators::Migration
source_root File.expand_path("templates", __dir__)
Expand Down
3 changes: 3 additions & 0 deletions lib/generators/doorkeeper/previous_refresh_token_generator.rb
Expand Up @@ -4,6 +4,9 @@
require "rails/generators/active_record"

module Doorkeeper
# Generates migration to add previous refresh token column to the
# database for Doorkeeper tables.
#
class PreviousRefreshTokenGenerator < ::Rails::Generators::Base
include ::Rails::Generators::Migration
source_root File.expand_path("templates", __dir__)
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/doorkeeper/views_generator.rb
Expand Up @@ -2,6 +2,8 @@

module Doorkeeper
module Generators
# Generates doorkeeper views for Rails application
#
class ViewsGenerator < ::Rails::Generators::Base
source_root File.expand_path("../../../app/views", __dir__)

Expand Down

0 comments on commit 675f737

Please sign in to comment.