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

Attributes global :boolean



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

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