Sha256: a5182d39003a9c38a5720bcbe837c8d08a09226fa1076904878c04eb07b0a935

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

module Spree
  module Admin
    class OauthApplicationsController < ResourceController
      before_action :set_default_scopes, only: [:new, :edit]

      private

      def create_turbo_stream_enabled?
        true
      end

      def set_default_scopes
        @object.scopes = 'admin' if @object.scopes.blank?
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.8.3 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.8.2 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.8.1 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.7.2 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.6.2 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.7.1 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.7.0 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.6.1 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.6.0 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.5.1 app/controllers/spree/admin/oauth_applications_controller.rb
spree_backend-4.5.0 app/controllers/spree/admin/oauth_applications_controller.rb