Class: Spree::Reviews::Config

Inherits:
Config
  • Object
show all
Defined in:
lib/spree/reviews/config.rb

Class Method Summary collapse

Class Method Details

.instanceObject



4
5
6
7
# File 'lib/spree/reviews/config.rb', line 4

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