Skip to content

Commit

Permalink
fix offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-farsi committed May 21, 2024
1 parent aa8d6b8 commit a9cc3f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class RemoveCnousRolesToSubInstructorApiParticulier < ActiveRecord::Migration[7.0]
def up

return unless subinstructor_exists?

remove_roles(
Expand Down Expand Up @@ -36,5 +35,6 @@ def remove_roles(emails, roles_to_remove)
end

def subinstructor_email = Rails.application.credentials.enseignementsup_subinstructor.email

def subinstructor_exists? = Rails.application.credentials.enseignementsup_subinstructor.present?
end

0 comments on commit a9cc3f4

Please sign in to comment.