B-Sides / peacekeeper

Peacekeeper handles delegation to a variety of ORMs and separation of business logic from persistance logic
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Superclass mismatch #10

Open vosechu opened 12 years ago

vosechu commented 12 years ago

The best I can track this down is this:

After starting up torquebox with torquebox run, when I first do any calls to the peacekeeper model it chokes on superclass mismatch.

respond_to :json
def show
  @restaurant = RestaurantModel.find(params[:id])

  respond_with @restaurant
end

If I change that to use Restaurant instead of RestaurantModel, refresh, and then change it back things seem to be okay for me. Just confirmed with David that this helps his box too.