Class: Spree::AppConfiguration

Inherits:
Preferences::Configuration show all
Defined in:
app/models/spree/app_configuration.rb

Constant Summary collapse

DEPRECATED_STORE_PREFERENCES =

all the following can be deprecated when store prefs are no longer supported

{
  site_name: :name,
  site_url: :url,
  default_meta_description: :meta_description,
  default_meta_keywords: :meta_keywords,
  default_seo_title: :seo_title,
}

Instance Method Summary collapse

Methods inherited from Preferences::Configuration

#configure, #method_missing, #preferences, #reset, #set

Methods included from Preferences::Preferable

#clear_preferences, #default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Spree::Preferences::Configuration

Instance Method Details

#searcher_classObject

searcher_class allows spree extension writers to provide their own Search class


79
80
81
# File 'app/models/spree/app_configuration.rb', line 79

def searcher_class
  @searcher_class ||= Spree::Core::Search::Base
end

#searcher_class=(sclass) ⇒ Object


83
84
85
# File 'app/models/spree/app_configuration.rb', line 83

def searcher_class=(sclass)
  @searcher_class = sclass
end