Class: Spree::Base

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Preferences::Preferable, RansackableAttributes
Defined in:
app/models/spree/base.rb

Class Method Summary collapse

Methods included from Preferences::Preferable

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

Class Method Details

.belongs_to_required_by_defaultObject


21
22
23
# File 'app/models/spree/base.rb', line 21

def self.belongs_to_required_by_default
  false
end

.page(num) ⇒ Object


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

def self.page(num)
  send Kaminari.config.page_method_name, num
end

.spree_base_scopesObject


25
26
27
# File 'app/models/spree/base.rb', line 25

def self.spree_base_scopes
  where(nil)
end