Skip to content

Commit

Permalink
clean up pr
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Feb 27, 2024
1 parent d354bef commit faf2610
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 110 deletions.
6 changes: 2 additions & 4 deletions app/controllers/people_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ class PeopleController < CrudController

# self.permitted_relationships = %i[person_roles people_skills]




def show
require 'pry'; binding.pry # rubocop:disable Style/Semicolon,Lint/Debugger
if format_odt?
export
return
end
@person = Person.includes(projects: :project_technologies,
person_roles: [:role, :person_role_level]).find(params.fetch(:id))
super
end

Expand Down
2 changes: 0 additions & 2 deletions app/models/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
class Person < ApplicationRecord
include PgSearch::Model

# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :omniauthable, omniauth_providers: [:openid_connect]

belongs_to :company
Expand Down
7 changes: 0 additions & 7 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class Application < Rails::Application
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.autoload_paths += %W( #{config.root}/app/uploaders) #
config.autoload_paths += %W(#{config.root}/lib)
config.i18n.default_locale = :de

config.active_record.verify_foreign_keys_for_fixtures = false
Expand All @@ -48,11 +47,5 @@ def keycloak_disabled?
ENV['KEYCLOAK_DISABLED'].present?
end

config.middleware.use Rack::OAuth2::Server::Rails::Authorize
config.middleware.use Rack::OAuth2::Server::Resource::Bearer, 'OpenID Connect' do |req|
AccessToken.valid.find_by(token: req.access_token) ||
req.invalid_token!
end

end
end
31 changes: 0 additions & 31 deletions config/auth.yml

This file was deleted.

6 changes: 0 additions & 6 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,7 @@
t.string "email"
t.integer "department_id"
t.string "shortname"
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.index ["company_id"], name: "index_people_on_company_id"
t.index ["email"], name: "index_people_on_email", unique: true
t.index ["reset_password_token"], name: "index_people_on_reset_password_token", unique: true
end

create_table "people_skills", force: :cascade do |t|
Expand Down
60 changes: 0 additions & 60 deletions lib/oidc_client.rb

This file was deleted.

0 comments on commit faf2610

Please sign in to comment.