Sha256: 6ff20d913c48a17901f6b8c7575dedbff9efc80f7a50631243acd719d69b5934
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
module Trestle module ResourceHelpers module Resource extend ActiveSupport::Concern included do prepend Collection singleton_class.send(:prepend, Collection) end module Collection def resource_description adapter.resource_description if resource_described? end end module ClassMethods def resource_described? adapter.respond_to?(:resource_description) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-resource_helpers-0.1.1 | lib/trestle/resource_helpers/resource.rb |
trestle-resource_helpers-0.1.0 | lib/trestle/resource_helpers/resource.rb |