Sha256: 9007bf7bac825e8953e9c202cd4ffc4ef4fe6b75acade990ebcd335bd0fbb417

Contents?: true

Size: 286 Bytes

Versions: 3

Compression:

Stored size: 286 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_reviews-0.50.1 lib/spree/reviews/config.rb
spree_reviews-0.50.0 lib/spree/reviews/config.rb
spree_reviews-0.30.0 lib/spree/reviews/config.rb