Class: Effective::CkAsset

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/ck_asset.rb

Class Method Summary collapse

Class Method Details

.globalObject



18
19
20
# File 'app/models/effective/ck_asset.rb', line 18

def self.global
  CkAsset.where(global: true).first || CkAsset.create!(global: true)
end