Sha256: 46975096b8a4ca23dcb28a7ddafda320ab9f087f7ed08d9f591e462fbfb27e77
Contents?: true
Size: 441 Bytes
Versions: 4
Compression:
Stored size: 441 Bytes
Contents
class Spree::Base < ActiveRecord::Base include Spree::Preferences::Preferable serialize :preferences, Hash include Spree::RansackableAttributes after_initialize do self.preferences = default_preferences.merge(preferences) if has_attribute?(:preferences) end if Kaminari.config.page_method_name != :page def self.page num send Kaminari.config.page_method_name, num end end self.abstract_class = true end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spree_core-3.0.5 | app/models/spree/base.rb |
spree_core-3.0.4 | app/models/spree/base.rb |
spree_core-2.4.10 | app/models/spree/base.rb |
spree_core-2.3.13 | app/models/spree/base.rb |