Sha256: 8cc5993fb7e076a7fc89823fea12a47c7afb72d7e004ecf549d131636edbf4b8

Contents?: true

Size: 307 Bytes

Versions: 8

Compression:

Stored size: 307 Bytes

Contents

require 'acts_as_list'
module Ominous
  class WarningCloser < ActiveRecord::Base
    attr_accessible :warning_id, :closer_id, :position
    
    belongs_to :closer
    belongs_to :warning
    
    acts_as_list :scope =>  :warning
    
    validates_uniqueness_of :closer_id, :scope => :warning_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ominous-0.1.3 app/models/ominous/warning_closer.rb
ominous-0.1.2 app/models/ominous/warning_closer.rb
ominous-0.1.1 app/models/ominous/warning_closer.rb
ominous-0.1.0 app/models/ominous/warning_closer.rb
ominous-0.0.5 app/models/ominous/warning_closer.rb
ominous-0.0.4 app/models/ominous/warning_closer.rb
ominous-0.0.3 app/models/ominous/warning_closer.rb
ominous-0.0.2 app/models/ominous/warning_closer.rb