Module: SBF::Client::Entities::DefaultCacheable
- Included in:
- Challenge, Challenger, Disease, Donation, Fund, Fundraiser, Grant, Institution, Kid, Memorial, Page, Participant, Person, RecurringGift, Team, ThirdPartyMedia
- Defined in:
- lib/stbaldricks/entities/lib/default_cacheable.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/stbaldricks/entities/lib/default_cacheable.rb', line 7 def self.included(klass) klass.class_eval do include Cacheable cache_id_from_hash ->(h) { [h[:id]] } cache_id -> { [id] } end end |