Sha256: 1f240445b986532daaf5980e7c7b73dcd6564d7588fb27eecefd50862c674698

Contents?: true

Size: 224 Bytes

Versions: 11

Compression:

Stored size: 224 Bytes

Contents

class DispatchUnsubscribe < ActiveRecord::Base
  belongs_to :dispatch
  validates_presence_of :email
  validates_uniqueness_of :email, :scope => :dispatch_id

  # open up everything for mass assignment
  attr_protected

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.9 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.8 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.7 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.6 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.5 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.4 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.3 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.2 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.1 lib/forge/app/models/dispatch_unsubscribe.rb
forge-cli-0.1.0 lib/forge/app/models/dispatch_unsubscribe.rb