title: uninitialized constant User::BCrypt (version related?)
body: <p>I'm getting the error "uninitialized constant User::BCrypt".</p>
  
  <p>I checked this question: <a href="https://github.com/ryanb/nifty-generators/issues/68" rel="nofollow">https://github.com/ryanb/nifty-generators/issues/68</a></p>
  
  <p>Suggested solution to bundle install doesn't work (of course, I bundle install frequently).</p>
  
  <p>I checked this question: <a href="https://github.com/codahale/bcrypt-ruby/issues/89" rel="nofollow">https://github.com/codahale/bcrypt-ruby/issues/89</a></p>
  
  <p>Suggested solution to change the gem to 'bcrypt-ruby' instead of just 'bcrypt' does update my gem to a newer version, but doesn't solve the problem.</p>
  
  <p>Here's my User Model</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    validates :username, :password_digest, :session_token, presence: true
    validates :session_token, uniqueness: true
    attr_reader :password
  
    def self.find_by_credentials(username, password)
      user = User.find_by_username(username)
      user.try(:valid_password?, password) ? user : nil
    end
  
    def valid_password?(password)
      BCrypt::Password.new(self.password_digest).is_password?(password)
    end
  
    def password=(password)
      @password = password
      self.password_digest = BCrypt::Password.create(password)
    end
  
    def reset_session_token
      self.session_token = SecureRandom.urlsafe_base64
      self.save!
      self.session_token
    end
  end
  </code></pre>