I want to change mysql2_adapter.rb
located in /home/jimcgh/.rvm/gems/ruby-2.0.0-p353@myproject/gems/activerecord-3.2.13/lib/active_record/connection_adapters
.
I want to redefine the connect method as follows
def connect
@connection = Mysql2::Client.new(@config)
@connection.options(Mysql::OPT_LOCAL_INFILE, 1) #Im adding this line
configure_connection
end
If i just make this change, will it reflect in my rails app ?. Is there a better way to do this change?
Please Help Thank You