Class: MessageBus::Rails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/message_bus/rails/railtie.rb

Instance Method Summary collapse

Instance Method Details

#api_only?(config) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
36
37
# File 'lib/message_bus/rails/railtie.rb', line 33

def api_only?(config)
  return false if !config.respond_to?(:api_only)

  config.api_only
end

#skip_middleware?(config) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
30
31
# File 'lib/message_bus/rails/railtie.rb', line 27

def skip_middleware?(config)
  return false if !config.respond_to?(:skip_message_bus_middleware)

  config.skip_message_bus_middleware
end