Sha256: 58a4ac31dd0570905dee8f3d33ec5517ae4fdfe4cd3668ab12b21f9b22872fd5

Contents?: true

Size: 218 Bytes

Versions: 29

Compression:

Stored size: 218 Bytes

Contents

class Admin < ActiveRecord::Base
  has_secure_password

  validates :email, presence: true, format: {with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i}
  validates :password_confirmation, presence: {on: :create}
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
loco-rails-3.0.5 test/dummy/app/models/admin.rb
loco-rails-3.0.4 test/dummy/app/models/admin.rb
loco-rails-3.0.3 test/dummy/app/models/admin.rb
loco-rails-2.5.3 test/dummy/app/models/admin.rb
loco-rails-2.5.2 test/dummy/app/models/admin.rb
loco-rails-3.0.2 test/dummy/app/models/admin.rb
loco-rails-3.0.1 test/dummy/app/models/admin.rb
loco-rails-2.5.1 test/dummy/app/models/admin.rb
loco-rails-2.5.0 test/dummy/app/models/admin.rb
loco-rails-2.4.0 test/dummy/app/models/admin.rb
loco-rails-2.3.0 test/dummy/app/models/admin.rb
loco-rails-3.0.0 test/dummy/app/models/admin.rb
loco-rails-2.2.2 test/dummy/app/models/admin.rb
loco-rails-2.2.1 test/dummy/app/models/admin.rb
loco-rails-2.2.0 test/dummy/app/models/admin.rb
loco-rails-2.1.0 test/dummy/app/models/admin.rb
loco-rails-2.0.0 test/dummy/app/models/admin.rb
loco-rails-1.5.2 test/dummy/app/models/admin.rb
loco-rails-1.5.1 test/dummy/app/models/admin.rb
loco-rails-1.5.0 test/dummy/app/models/admin.rb