aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/subscriptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/connection/subscriptions.rb')
-rw-r--r--lib/action_cable/connection/subscriptions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/action_cable/connection/subscriptions.rb b/lib/action_cable/connection/subscriptions.rb
index 803894c8f6..0411d96413 100644
--- a/lib/action_cable/connection/subscriptions.rb
+++ b/lib/action_cable/connection/subscriptions.rb
@@ -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