[#465] project collaborators page

This commit is contained in:
Alexander Machehin 2015-03-30 18:30:19 +05:00 committed by Vokhmin Alexey V
parent 68360c5858
commit a8fe6e2344
2 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,6 @@ class Projects::CollaboratorsController < Projects::BaseController
respond_to :html, :json respond_to :html, :json
before_action :authenticate_user! before_action :authenticate_user!
load_resource :project
before_action :authorize_collaborators before_action :authorize_collaborators
before_action :find_users before_action :find_users

View File

@ -38,6 +38,7 @@ class Collaborator
end end
def initialize(args = {}) def initialize(args = {})
return false if args.blank?
args.to_options! args.to_options!
acc_options = args.select{ |(k, v)| k.in? [:actor, :project, :relation] } acc_options = args.select{ |(k, v)| k.in? [:actor, :project, :relation] }
acc_options.each_pair do |name, value| acc_options.each_pair do |name, value|