Sha256: 3fda751ac334d9908a5aa87c9dc2f84132f00ec41ebebab1fec2a9253c78f4b6
Contents?: true
Size: 476 Bytes
Versions: 6
Compression:
Stored size: 476 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 end
Version data entries
6 entries across 6 versions & 1 rubygems