Skip to content

Commit

Permalink
Remove ActionCable::Channel::Base from base classes when setting cust…
Browse files Browse the repository at this point in the history
…om_payload (#286)

Remove ActionCable::Channel::Base from base classes when setting custom_payload

Fixes #285
  • Loading branch information
xlts authored and benlovell committed Jun 12, 2019
1 parent 8fdc075 commit 397c830
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/lograge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ def setup_custom_payload

base_classes = Array(lograge_config.base_controller_class)
base_classes.map! { |klass| klass.try(:constantize) }
if base_classes.empty?
base_classes << ActionController::Base
base_classes << ActionCable::Channel::Base if defined?(ActionCable)
end
base_classes << ActionController::Base if base_classes.empty?

base_classes.each do |base_class|
extend_base_class(base_class)
Expand Down

0 comments on commit 397c830

Please sign in to comment.