Skip to content

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

Description

@yakjuly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions