我在哪里可以覆盖active_for_authentication?
def active_for_authentication?
super && account_active?
end
1) 文件位置和文件名。
2) 完整文件的样子.. 等等... class something < < devise:something
原来的active_for_authentication?方法可以在 devise/lib/devise/models/authenticable.rb 中找到。
谢谢你