Module: LucidHandler::Mixin
- Defined in:
- lib/lucid_handler/mixin.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/lucid_handler/mixin.rb', line 3 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 |
Instance Method Details
#current_user ⇒ Object
19 20 21 |
# File 'lib/lucid_handler/mixin.rb', line 19 def current_user Isomorfeus.current_user end |
#pub_sub_client ⇒ Object
23 24 25 |
# File 'lib/lucid_handler/mixin.rb', line 23 def pub_sub_client Isomorfeus.pub_sub_client end |
#resolving? ⇒ Boolean
15 16 17 |
# File 'lib/lucid_handler/mixin.rb', line 15 def resolving? false end |