Sha256: b83951d398ab89c35f8a9b9cfcec27a74ae9ce443a5edf4a75f172d4855af5a1
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
module Corkboard # Providers are the heart of Corkboard's aggregation of content. # Each provider defined must include this module. module Provider extend ActiveSupport::Concern included do |base| base.extend(ActiveModel::Naming) end module ClassMethods def service @service ||= self.model_name.element.intern end end def service @service ||= self.class.service end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
corkboard-0.1.3 | lib/corkboard/provider.rb |
corkboard-0.1.2 | lib/corkboard/provider.rb |
corkboard-0.1.1 | lib/corkboard/provider.rb |
corkboard-0.1.0 | lib/corkboard/provider.rb |