I am new to Rails 6 and I am getting above error. Please check the below code and help me to get out of this. Thanks!
has_many :coaches, ->{where('max_unit > 0 and active = 1').order('trim(full_name)')}, ->{select((Account.column_names - ['photo_file']).map { |column_name| "`accounts`.`#{column_name}`"})}, :through => :qualifications
backtrace: ArgumentError (wrong number of arguments (given 3, expected 1..2)):
app/models/language.rb:9:in
<class:Language>' app/models/language.rb:1:in
' app/models/account.rb:142:inmanage_substitutions' app/controllers/extranet/homes_controller.rb:11:in
index'