11 12 13 14
# File 'app/models/store.rb', line 11 def self.current(domain = nil) current_store = domain ? Store.by_domain(domain).first : nil current_store || Store.default.first end