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

.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



23
24
25
# File 'app/models/spree/base.rb', line 23

def self.spree_base_scopes
  where(nil)
end