Sha256: 5a876d0abadca330398c148d9b74dec5d5e2b6e871fcfe273e91d339c65185b1

Contents?: true

Size: 231 Bytes

Versions: 13

Compression:

Stored size: 231 Bytes

Contents

class Subscriber < ActiveRecord::Base
  validates :email, :presence => true, :uniqueness => true
  has_many :subscriber_group_members
  has_many :groups, :through => :subscriber_group_members, :class_name => "SubscriberGroup" 
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
forge-cli-0.0.18 lib/forge/app/models/subscriber.rb
forge-cli-0.0.17 lib/forge/app/models/subscriber.rb
forge-cli-0.0.16 lib/forge/app/models/subscriber.rb
forge-cli-0.0.15 lib/forge/app/models/subscriber.rb
forge-cli-0.0.14 lib/forge/app/models/subscriber.rb
forge-cli-0.0.13 lib/forge/app/models/subscriber.rb
forge-cli-0.0.12 lib/forge/app/models/subscriber.rb
forge-cli-0.0.11 lib/forge/app/models/subscriber.rb
forge-cli-0.0.10 lib/forge/app/models/subscriber.rb
forge-cli-0.0.9 lib/forge/app/models/subscriber.rb
forge-cli-0.0.8 lib/forge/app/models/subscriber.rb
forge-cli-0.0.7 lib/forge/app/models/subscriber.rb
forge-cli-0.0.6 lib/forge/app/models/subscriber.rb