Sha256: 9518229836e4e5903b1f1b2fcd64704ab2b0c8d1083614cb4b9a5573eaef07d8

Contents?: true

Size: 542 Bytes

Versions: 58

Compression:

Stored size: 542 Bytes

Contents

module LucidHandler
  module Mixin
    def self.included(base)
      Isomorfeus.add_valid_handler_class(base) unless base == LucidHandler::Base

      base.instance_exec do
        def on_request(&block)
          define_method :process_request do |*args|
            instance_exec(*args, &block)
          end
        end
      end
    end

    def resolving?
      false
    end

    def current_user
      Isomorfeus.current_user
    end

    def pub_sub_client
      Isomorfeus.pub_sub_client
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
isomorfeus-transport-2.5.5 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.5.4 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.5.3 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.5.2 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.5.1 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.5.0 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.4.2 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.4.1 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.4.0 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.3.1 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.3.0 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.11 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.10 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.9 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.8 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.7 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.6 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.5 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.4 lib/lucid_handler/mixin.rb
isomorfeus-transport-2.2.3 lib/lucid_handler/mixin.rb