Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

many acts_as_readonly's model read one database should use a common connection. #2

Open
yakjuly opened this issue Aug 16, 2010 · 0 comments

Comments

@yakjuly
Copy link

yakjuly commented Aug 16, 2010

all local db model use ActiveRecord::Base.connection.
EX:
class Foo < ActiveRecord::Base
end
class Bar < ActiveRecord::Base
end

Foo.connection.object_id == Bar.connection.object_id

so readonly model also need this.

class Foo < ActiveRecord::Base
acts_as_readonly :other
end

class Bar < ActiveRecord::Base
acts_as_readonly :other
end

Foo.connection.object_id.should == Bar.connection.object_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant