Sha256: 4a82ec89d718173cc711f97b2d27389824e15c27eed7e0d03a74c241279b036c
Contents?: true
Size: 503 Bytes
Versions: 11
Compression:
Stored size: 503 Bytes
Contents
module Woopy class Resource < ActiveResource::Base # Resource.site = DEFAULT_SITE_BASE class << self # If headers are not defined in a given subclass, then obtain headers from the superclass. # Taken from the Harvest gem: github.com/aiaio/harvest def headers if defined?(@headers) @headers elsif superclass != Object && superclass.headers superclass.headers else @headers ||= {} end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems