1
0
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:
Sylvain 2016-08-17 15:42:52 +02:00
parent 26aed7a1b5
commit b166d6abc6
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
class MembersFlowWorker
class MembersProcessor
attr_accessor :member