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
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