Class: Gemgento::Store

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/gemgento/store.rb

Overview

Author:

  • Gemgento LLC

Class Method Summary collapse

Class Method Details

.currentObject



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