mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ee5ef67c44
This commit updates new? so that it knows whether or not the record was actually new or not, and doesn't rely solely on the presence of id. This enables the ability to set a custom primary_key that is not autogenerated by the server. Signed-off-by: José Valim <jose.valim@gmail.com>
5 lines
148 B
Ruby
5 lines
148 B
Ruby
class SubscriptionPlan < ActiveResource::Base
|
|
self.site = "http://37s.sunrise.i:3000"
|
|
self.element_name = 'plan'
|
|
self.primary_key = :code
|
|
end
|