Module: RapidApi::ActionController::Macros::ClassMethods

Defined in:
lib/rapid_api/action_controller/macros.rb

Instance Method Summary collapse

Instance Method Details

#rapid_actions(options = {}) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rapid_api/action_controller/macros.rb', line 7

def rapid_actions(options={})
  include RapidApi::ActionController::ResourceActions
  self.model              = options[:model]              if options[:model]
  self.serializer         = options[:serializer]         if options[:serializer]
  self.model_adapter      = options[:model_adapter]      if options[:model_adapter]
  self.serializer_adapter = options[:serializer_adapter] if options[:serializer_adapter]
end

#rapid_base_controllerObject



20
21
22
23
# File 'lib/rapid_api/action_controller/macros.rb', line 20

def rapid_base_controller
  include RapidApi::ActionController::Errors
  include RapidApi::Auth::Concerns::AuthenticatedController
end

#rapid_sessions_controllerObject



15
16
17
18
# File 'lib/rapid_api/action_controller/macros.rb', line 15

def rapid_sessions_controller
  include RapidApi::ActionController::Errors
  include RapidApi::Auth::Concerns::SessionsController
end