Sha256: bcefba2cac47cba15a0d83388b6cabbd5306b7f196adba958c5fc752d6d331ce

Contents?: true

Size: 201 Bytes

Versions: 6

Compression:

Stored size: 201 Bytes

Contents

class Product < ActiveRecord::Base
  belongs_to :account
  acts_as_sequenced :scope => :account_id, :start_at => lambda { |r| r.computed_start_value }
  
  def computed_start_value
    1 + 2
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sequenced-3.1.1 test/dummy/app/models/product.rb
sequenced-3.1.0 test/dummy/app/models/product.rb
sequenced-3.0.0 test/dummy/app/models/product.rb
sequenced-2.0.0 test/dummy/app/models/product.rb
sequenced-1.6.0 test/dummy/app/models/product.rb
sequenced-1.5.0 test/dummy/app/models/product.rb