Sha256: 05a91ab7eecaef16804d4f25cfc5a78082c1fb6f33e9dc8632534f59e679e899

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

class User < Crowdblog::User

  # Include default devise modules. Others available are:
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :token_authenticatable, :trackable

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

  validate :email, uniqueness: true

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crowdblog-0.0.3 spec/dummy/app/models/user.rb
crowdblog-0.0.2 spec/dummy/app/models/user.rb