We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With these classes
# app/models/vehicle.rb class Vehicle include Dynamoid::Document table key: :vehicle_id field :vehicle_id field :type end # app/models/car.rb class Car < Vehicle end # app/models/boat.rb class Boat < Vehicle end
Car.all and Car.find(id) return the same thing Vehicle.all and Vehicle.find(id), which include Boat objects.
Car.all
Car.find(id)
Vehicle.all
Vehicle.find(id)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With these classes
Car.all
andCar.find(id)
return the same thingVehicle.all
andVehicle.find(id)
, which include Boat objects.The text was updated successfully, but these errors were encountered: