mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
renamed FlowWorkers to more consistant name (Processors)
This commit is contained in:
parent
26aed7a1b5
commit
b166d6abc6
@ -63,7 +63,7 @@ class API::MembersController < API::ApiController
|
||||
|
||||
def update
|
||||
authorize @member
|
||||
@flow_worker = MembersFlowWorker.new(@member)
|
||||
@flow_worker = MembersProcessor.new(@member)
|
||||
|
||||
if user_params[:group_id] and @member.group_id != user_params[:group_id].to_i and @member.subscribed_plan != nil
|
||||
# here a group change is requested but unprocessable, handle the exception
|
||||
@ -147,7 +147,7 @@ class API::MembersController < API::ApiController
|
||||
|
||||
@account = User.find_by_auth_token(token)
|
||||
if @account
|
||||
@flow_worker = MembersFlowWorker.new(@account)
|
||||
@flow_worker = MembersProcessor.new(@account)
|
||||
begin
|
||||
if @flow_worker.merge_from_sso(@member)
|
||||
@member = @account
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
class MembersFlowWorker
|
||||
class MembersProcessor
|
||||
|
||||
attr_accessor :member
|
||||
|
Loading…
Reference in New Issue
Block a user