Class: Spree::Base
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, Variant, Zone, ZoneMember
Class Method Summary
collapse
#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_default ⇒ Object
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_scopes ⇒ Object
25
26
27
|
# File 'app/models/spree/base.rb', line 25
def self.spree_base_scopes
where(nil)
end
|