I wanted to know how ActiveRecord::Base.connection.execute method is defined.
So I've checked source code but I couldn't understand what is going on.
# Executes the SQL statement in the context of this connection.
def execute(sql, name = nil)
end
undef_method :execute
Perhaps the method is defined another place dynamically. How can I find place where the method is described?