class User < ActiveRecord::Base
  has_secure_password
  has_many :projects
  validates :email, :password_digest, presence: true
  validates :email, length: { minimum: 1 }
  validates :email, uniqueness: true

  # include Gravtastic
  # gravtastic :size => 120

  def get_project
    self.projects.last.active_project(self)
  end

  def get_new_project_form
    Project.new
  end
end
class User < ActiveRecord::Base
  has_secure_password
  has_many :projects
  validates :email, :password_digest, presence: true
  validates :email, length: { minimum: 1 }
  validates :email, uniqueness: true

  def get_project
    self.projects.last.active_project(self)
  end

  def get_new_project_form
    Project.new
  end
end
Remove commented out Gravatastic code in User model until needed.
Remove commented out Gravatastic code in User model until needed.
