Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Feb 27, 2024
1 parent faf2610 commit b98e535
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions app/controllers/skills_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class SkillsController < CrudController
include ExportController
include KeycloakTools

before_action :authorize_admin, except: %i[index show create unrated_by_person]

self.permitted_attrs = %i[title radar portfolio default_set category_id]

Expand Down
11 changes: 0 additions & 11 deletions app/models/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,5 @@ def from_omniauth(auth)
person.company = Company.first
end
end

def new_with_session(params, session)
require 'pry'; binding.pry # rubocop:disable Style/Semicolon,Lint/Debugger
super.tap do |user|
data = session['devise.facebook_data']
session_info = session['devise.facebook_data']['extra']['raw_info']
if data && session_info && user.email.blank?
user.email = data['email']
end
end
end
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_02_26_110212) do
ActiveRecord::Schema[7.0].define(version: 2021_03_08_101205) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down

0 comments on commit b98e535

Please sign in to comment.