Sha256: 93d694769e47bb8625d93cba172b89cc2f34e12f12d05a857d49f1db67920895
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
require 'deprecation' module Qa::Authorities class Base extend Deprecation # By default, #all is not implemented. # If the subclassed authority does have this feature # then you will overide the #all method in the subclassed authority. # TODO: need to set some kind of error here def all end # By default, #find is not implemented. # If the subclassed authority does have this feature # then you will overide the #find method in the subclassed authority. # TODO: need to set some kind of error here def find id end def full_record id, sub_authority=nil Deprecation.warn(".full_record is deprecated. Use .find instead") find(id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qa-0.4.3 | lib/qa/authorities/base.rb |