ban.rb 269 B

1234567891011
  1. class Ban < ActiveRecord::Base
  2. attr_accessible :frequency_id, :hostmask, :reason, :valid_from, :valid_to, :activate
  3. # Relation
  4. belongs_to :frequency
  5. # Validation
  6. validates_presence_of :frequency_id
  7. validates_presence_of :frequency_id, :on => :update
  8. end