1 2 3 4 5
class SubscriptionPlan < ActiveResource::Base self.site = "http://37s.sunrise.i:3000" self.element_name = 'plan' self.primary_key = :code end