Veraticus / Dynamoid

Ruby ORM for Amazon's DynamoDB
http://joshsymonds.com/Dynamoid/
247 stars 83 forks source link

Single Table Inheritance .find and .all not working #139

Open luxx opened 11 years ago

luxx commented 11 years ago

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.