Sha256: 02a57576416bb3de5112946d1d6dcb7accac02cecf85407dfc6df893f8d91485

Contents?: true

Size: 140 Bytes

Versions: 5

Compression:

Stored size: 140 Bytes

Contents

class Newsletter < ActiveRecord::Base
  validates :email,
    :format => /^([^\s]+)((?:[-a-z0-9]\.)[a-z]{2,})$/i,
    :presence => true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forgeos_cms-1.9.5.rc1 app/models/newsletter.rb
forgeos_cms-1.9.4 app/models/newsletter.rb
forgeos_cms-1.9.2 app/models/newsletter.rb
forgeos_cms-1.9.1 app/models/newsletter.rb
forgeos_cms-1.9.0 app/models/newsletter.rb