As a user
When I perform an ActiveRecord query through a Positron host class
I receive an instance of the host class
So that ActiveRecord details don't leak into the host class
Interface idea:
class Model # not ActiveRecord
include Positron
def self.find(id)
db.find id
end
end
model = Model.find 3
model.class #=> Model
As a user When I perform an ActiveRecord query through a Positron host class I receive an instance of the host class So that ActiveRecord details don't leak into the host class
Interface idea: