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