Sha256: 494dd79dc8b92b66d3e780afde24fb6143be73c9589484ae58d56096a306484b

Contents?: true

Size: 400 Bytes

Versions: 33

Compression:

Stored size: 400 Bytes

Contents

class Spree::Base < ActiveRecord::Base
  include Spree::Preferences::Preferable
  serialize :preferences, Hash
  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

33 entries across 33 versions & 2 rubygems

Version Path
spree_core-3.0.3 app/models/spree/base.rb
spree_core-2.4.9 app/models/spree/base.rb
spree_core-2.3.12 app/models/spree/base.rb
solidus_core-1.0.0.pre2 app/models/spree/base.rb
spree_core-3.0.2 app/models/spree/base.rb
spree_core-2.4.8 app/models/spree/base.rb
spree_core-2.3.11 app/models/spree/base.rb
solidus_core-1.0.0.pre app/models/spree/base.rb
spree_core-3.0.1 app/models/spree/base.rb
spree_core-2.4.7 app/models/spree/base.rb
spree_core-2.3.10 app/models/spree/base.rb
spree_core-3.0.0 app/models/spree/base.rb
spree_core-2.4.6 app/models/spree/base.rb
spree_core-2.3.9 app/models/spree/base.rb
spree_core-2.3.8 app/models/spree/base.rb
spree_core-2.4.5 app/models/spree/base.rb
spree_core-3.0.0.rc4 app/models/spree/base.rb
spree_core-3.0.0.rc3 app/models/spree/base.rb
spree_core-2.4.4 app/models/spree/base.rb
spree_core-2.3.7 app/models/spree/base.rb