Commit 4501dd8

mo <mo.khan@gmail.com>
2018-09-04 23:23:06
fix lint error.
1 parent c8877d7
Changed files (2)
app
controllers
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,