Sha256: cba35d5a7a18df0d4a68faf192fc5f90bd9c5f7922fa8e7f8bf09e9f9595e323

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

module Spree::MailChimp
  class Config < Spree::Config
    class << self
      def instance
        return nil unless ActiveRecord::Base.connection.tables.include?('configurations')
        MailChimpConfiguration.find_or_create_by_name("MailChimp configuration")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_mail_chimp-3.0.2 lib/spree/mail-chimp/config.rb
spree_mail_chimp-3.0.1 lib/spree/mail-chimp/config.rb
spree_mail_chimp-3.0.0 lib/spree/mail-chimp/config.rb