Class: Spree::Base
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Spree::Base
- Includes:
- Preferences::Preferable, RansackableAttributes
- Defined in:
- app/models/spree/base.rb
Direct Known Subclasses
Address, Adjustment, Asset, Calculator, Classification, Country, CreditCard, CustomerReturn, InventoryUnit, LegacyUser, LineItem, LogEntry, OptionType, OptionTypePrototype, OptionValue, OptionValueVariant, Order, OrderPromotion, Payment, PaymentCaptureEvent, PaymentMethod, Preference, Price, Product, ProductOptionType, ProductPromotionRule, ProductProperty, Promotion, PromotionAction, PromotionActionLineItem, PromotionCategory, PromotionRule, PromotionRuleTaxon, PromotionRuleUser, Property, PropertyPrototype, Prototype, PrototypeTaxon, Refund, RefundReason, Reimbursement, Reimbursement::Credit, ReimbursementType, ReturnAuthorization, ReturnAuthorizationReason, ReturnItem, Role, RoleUser, Shipment, ShippingCategory, ShippingMethod, ShippingMethodCategory, ShippingMethodZone, ShippingRate, State, StateChange, StockItem, StockLocation, StockMovement, StockTransfer, Store, StoreCredit, StoreCreditCategory, StoreCreditEvent, StoreCreditType, TaxCategory, TaxRate, Taxon, Taxonomy, Tracker, Variant, Zone, ZoneMember
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_scopes ⇒ Object
23 24 25 |
# File 'app/models/spree/base.rb', line 23 def self.spree_base_scopes where(nil) end |