Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Nov 20, 2024
1 parent a88e780 commit 273eaf9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,6 @@ def verify_owner
redirect_to login_index_path(redirect: "/accounts/#{params[:id]}")
end

def get_ontology_list(ont_hash)
return '' if ont_hash.nil?

ontologies = []
ont_hash.each do |ont, checked|
ontologies << ont if checked.to_i == 1
end
ontologies.join(';')
end

def validate(params)
errors = []
if params[:email].length < 1 || !params[:email].match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i)
Expand Down

0 comments on commit 273eaf9

Please sign in to comment.