I need to load all my models from rails inside a ruby program that gonna
process a queue.

The problem is i have this structure.

app/models/coupon.rb
app/models/coupons/coupon_individual.rb

class Coupon
  TYPES = [CouponIndividual]
end

class CouponIndividual < Coupon
end

If i load first coupon individual, gives me error saying coupon dosent
exists.
If i load first coupon, gives me error saying CouponIndividual dosent
exists.

But rails somehow know how to load everything.
Anyone can help me?

-- 
Posted via http://www.ruby-forum.com/.