mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert to perform_action language – we're already using process for the connection
This commit is contained in:
parent
4c20f1b810
commit
a1200616cc
2 changed files with 4 additions and 4 deletions
|
@ -83,7 +83,7 @@ module ActionCable
|
|||
# Extract the action name from the passed data and process it via the channel. The process will ensure
|
||||
# that the action requested is a public method on the channel declared by the user (so not one of the callbacks
|
||||
# like #subscribed).
|
||||
def process_action(data)
|
||||
def perform_action(data)
|
||||
action = extract_action(data)
|
||||
|
||||
if processable_action?(action)
|
||||
|
|
|
@ -12,7 +12,7 @@ module ActionCable
|
|||
case data['command']
|
||||
when 'subscribe' then add data
|
||||
when 'unsubscribe' then remove data
|
||||
when 'message' then process_action data
|
||||
when 'message' then perform_action data
|
||||
else
|
||||
logger.error "Received unrecognized command in #{data.inspect}"
|
||||
end
|
||||
|
@ -41,8 +41,8 @@ module ActionCable
|
|||
subscriptions.delete(data['identifier'])
|
||||
end
|
||||
|
||||
def process_action(data)
|
||||
find(data).process_action ActiveSupport::JSON.decode(data['data'])
|
||||
def perform_action(data)
|
||||
find(data).perform_action ActiveSupport::JSON.decode(data['data'])
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue