Class: Spree::MailChimp::Config
- Inherits:
-
Config
- Object
- Config
- Spree::MailChimp::Config
- Defined in:
- lib/spree/mail-chimp/config.rb
Class Method Summary collapse
Class Method Details
.instance ⇒ Object
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 |