Class: Plum::Global

Inherits:
ApplicationRecord show all
Includes:
SiteScoped, StaticCacheInvalidation
Defined in:
app/models/plum/global.rb

Constant Summary

Constants included from StaticCacheInvalidation

StaticCacheInvalidation::CACHE_IRRELEVANT_COLUMNS

Instance Method Summary collapse

Instance Method Details

#dataObject



11
12
13
# File 'app/models/plum/global.rb', line 11

def data
  super || {}
end

#value(key) ⇒ Object



15
16
17
# File 'app/models/plum/global.rb', line 15

def value(key)
  data&.dig(key)
end