Sha256: 5939fa8a79ebf34b74747ff0432ee6db0ef0dad1f45bfb2f8d7e555013fb7242
Contents?: true
Size: 527 Bytes
Versions: 19
Compression:
Stored size: 527 Bytes
Contents
class Spree::Base < ActiveRecord::Base include Spree::Preferences::Preferable serialize :preferences, Hash include Spree::RansackableAttributes after_initialize do if has_attribute?(:preferences) && !preferences.nil? self.preferences = default_preferences.merge(preferences) end 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 def self.spree_base_scopes where(nil) end end
Version data entries
19 entries across 19 versions & 1 rubygems