Sha256: 88cb3f69494920cee2187ad2bf59dd722995caecbc5500f0a91653a17212f89d

Contents?: true

Size: 168 Bytes

Versions: 11

Compression:

Stored size: 168 Bytes

Contents

class Comment < ActiveRecord::Base
  belongs_to :question
  acts_as_sequenced :scope => :question_id
  
  def self.default_scope
    order("question_id ASC")
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sequenced-3.1.1 test/dummy/app/models/comment.rb
sequenced-3.1.0 test/dummy/app/models/comment.rb
sequenced-3.0.0 test/dummy/app/models/comment.rb
sequenced-2.0.0 test/dummy/app/models/comment.rb
sequenced-1.6.0 test/dummy/app/models/comment.rb
sequenced-1.5.0 test/dummy/app/models/comment.rb
sequenced-1.4.0 test/dummy/app/models/comment.rb
sequenced-1.3.0 test/dummy/app/models/comment.rb
sequenced-1.2.0 test/dummy/app/models/comment.rb
sequenced-1.0.0 test/dummy/app/models/comment.rb
sequenced-0.1.0 test/dummy/app/models/comment.rb