How to change connection to the database on acts as taggable on
15:41 03 May 2015

I have used rails and gem(acts as taggable on). I want to change acts as taggable on's database setting. so,I set as below

-database.yml

default: &default
    adapter: mysql2
    database: my_db1
    host: localhost
    username: root
    password: pass

development:
    <<: *default

my_db2:
    <<: *default
    database: my_db2

-user_model.rb

class User < ActiveRecord::Base
    acts_as_taggable
    establish_connection :my_db2
end

and, execute as below

User.find(1)
//this line result is connection to my_db2


User.find(1).tag_list
//this line result is connection to my_db1
//i want to connect to my_db2 in this code(by acts as taggable on)

I don't know how to resolve this problem.

Thanks.

ruby-on-rails activerecord acts-as-taggable-on