access project feeds via private token
This commit is contained in:
parent
003bf61258
commit
7b36b8d130
4 changed files with 23 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue