Class: Gemgento::Store
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gemgento::Store
- Defined in:
- app/models/gemgento/store.rb
Overview
Class Method Summary collapse
Class Method Details
.current ⇒ Object
21 22 23 24 |
# File 'app/models/gemgento/store.rb', line 21 def self.current @@current = Gemgento::Store.where.not(code: 'admin').first! if @@current.nil? return @@current end |
.current=(value) ⇒ Object
26 27 28 |
# File 'app/models/gemgento/store.rb', line 26 def self.current=(value) @@current = value end |