Commit 4501dd8
Changed files (2)
app
controllers
scim
models
app/controllers/scim/v2/schemas_controller.rb
@@ -3,21 +3,21 @@
module Scim
module V2
class SchemasController < ::Scim::Controller
- def index
- @schemas = [:user, :group]
- render status: :ok
- end
+ def index
+ @schemas = [:user, :group]
+ render status: :ok
+ end
- def show
- render partial: 'schema', formats: :scim, status: :ok, locals: { schema: current_schema }
- end
+ def show
+ render partial: 'schema', formats: :scim, status: :ok, locals: { schema: current_schema }
+ end
- private
+ private
- def current_schema(url = request.original_url)
- return :group if url.include?(SCIM::Schema::GROUP)
- return :user if url.include?(SCIM::Schema::USER)
- end
+ def current_schema(url = request.original_url)
+ return :group if url.include?(SCIM::Schema::GROUP)
+ return :user if url.include?(SCIM::Schema::USER)
+ end
end
end
end
app/models/user.rb
@@ -47,7 +47,7 @@ class User < ApplicationRecord
private
- def trusted_attributes_for(request)
+ def trusted_attributes_for(_request)
{
id: uuid,
email: email,