Devise `find_first_by_auth_conditions` method explanation

前端 未结 3 691
旧巷少年郎
旧巷少年郎 2021-01-27 04:14

My two methods using Devise:

Method1

def self.find_first_by_auth_conditions(warden_conditions)
  conditions = warden_conditions.dup
  wh         


        
3条回答
  •  执念已碎
    2021-01-27 04:48

    2.. I guess you mean that signin is not defined in find_first_by_auth_conditions? Then I also guess that signin is an attribute of warden_conditions so you can try: warden_conditions.signin.

提交回复
热议问题