Class: Spree::Base

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Core::Permalinks, RansackableAttributes
Defined in:
app/models/spree/base.rb

Class Method Summary collapse

Methods included from Core::Permalinks

#generate_permalink, #save_permalink

Class Method Details

.display_includesObject

Provides a scope that should be included any time products are fetched with the intention of displaying to the user.

Allows individual stores to include any active record scopes or joins when products are displayed.


14
15
16
# File 'app/models/spree/base.rb', line 14

def self.display_includes
  where(nil)
end