Sha256: 690ba361e2fb7269aa6c39e40d193dee073dee88a7cc407f685f118de2b37f30

Contents?: true

Size: 519 Bytes

Versions: 7

Compression:

Stored size: 519 Bytes

Contents

class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  validates :name, :presence => true, :length => { :maximum => 50 }

  # Setup accessible (or protected) attributes for your model
  attr_accessible :name, :email, :password, :password_confirmation, :remember_me
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
tft_rails_dbc-0.1.3 lib/generators/chapter07/solutions/templates/app/models/user.rb
tft_rails_dbc-0.1.1 lib/generators/chapter07/solutions/templates/app/models/user.rb
tft_rails_dbc-0.1 lib/generators/chapter07/solutions/templates/app/models/user.rb
tft_rails-0.6.2 lib/generators/chapter07/solutions/templates/app/models/user.rb
tft_rails-0.6.1 lib/generators/chapter07/solutions/templates/app/models/user.rb
tft_rails-0.6.0 lib/generators/chapter07/solutions/templates/app/models/user.rb
tft_rails-0.5.1 lib/generators/chapter07/solutions/templates/app/models/user.rb