access project feeds via private token

This commit is contained in:
Nihad Abbasov 2011-11-15 11:25:26 +04:00
parent 003bf61258
commit 7b36b8d130
4 changed files with 23 additions and 2 deletions

View file

@ -26,6 +26,7 @@ class User < ActiveRecord::Base
:dependent => :destroy
before_create :ensure_authentication_token
alias_attribute :private_token, :authentication_token
scope :not_in_project, lambda { |project| where("id not in (:ids)", :ids => project.users.map(&:id) ) }
def identifier