Sha256: 966e387d759e461f0af35a4b836a316270dbafa6d65f07ae4485bbf7d828acd4

Contents?: true

Size: 195 Bytes

Versions: 42

Compression:

Stored size: 195 Bytes

Contents

module Virgo
  class Subscriber < ActiveRecord::Base
    validates :email, presence: true, uniqueness: {message: "is already subscribed to the mailing list"}, email: true, reduce: true
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
virgo-0.3.17 app/models/virgo/subscriber.rb
virgo-0.3.16 app/models/virgo/subscriber.rb
virgo-0.3.15 app/models/virgo/subscriber.rb
virgo-0.3.14 app/models/virgo/subscriber.rb
virgo-0.3.13 app/models/virgo/subscriber.rb
virgo-0.3.12 app/models/virgo/subscriber.rb
virgo-0.3.11 app/models/virgo/subscriber.rb
virgo-0.3.10 app/models/virgo/subscriber.rb
virgo-0.3.9 app/models/virgo/subscriber.rb
virgo-0.3.8 app/models/virgo/subscriber.rb
virgo-0.3.7 app/models/virgo/subscriber.rb
virgo-0.3.6 app/models/virgo/subscriber.rb
virgo-0.3.4 app/models/virgo/subscriber.rb
virgo-0.3.3 app/models/virgo/subscriber.rb
virgo-0.3.2 app/models/virgo/subscriber.rb
virgo-0.3.1 app/models/virgo/subscriber.rb
virgo-0.3 app/models/virgo/subscriber.rb
virgo-0.2.9 app/models/virgo/subscriber.rb
virgo-0.2.8 app/models/virgo/subscriber.rb
virgo-0.2.7 app/models/virgo/subscriber.rb