Skip to content

Instantly share code, notes, and snippets.

View chadwtaylor's full-sized avatar

Chad Taylor chadwtaylor

View GitHub Profile
class ApplicationModel < ActiveResource::Base
@@site = "http://captionwatch-api.dev"
@@user = "admin"
end
class Complaint < ApplicationModel
end
class ApplicationModel < ActiveResource::Base
def initialize
super
self.site = "http://captionwatch-api.dev"
self.user = "admin"
end
end