Class: Spree::MailChimp::Config

Inherits:
Config
  • Object
show all
Defined in:
lib/spree/mail-chimp/config.rb

Class Method Summary collapse

Class Method Details

.instanceObject



4
5
6
7
# File 'lib/spree/mail-chimp/config.rb', line 4

def instance
  return nil unless ActiveRecord::Base.connection.tables.include?('configurations')
  MailChimpConfiguration.find_or_create_by_name("MailChimp configuration")
end