I am using a gem in my rails app, and there is a method that I would like to override. The gam is authlogic, and the specific method I was to override is find_by_smart_case_login_field(login).
I made a file in lib/modules with the following code:
# lib/modules/login.rb module Authlogic module ActsAsAuthentic module Login module Config def find_by_smart_case_login_field(login) login = login.downcase unless validates_uniqueness_of_login_field_options[:case_sensitive] if login_field where({ login_field.to_sym => login }) else where({ email_field.to_sym => login }) end end end end end end But this didn't do anything. Does anyone know how to overwrite the above method?