Module: RapidApi::ActionController::Macros::ClassMethods
- Defined in:
- lib/rapid_api/action_controller/macros.rb
Instance Method Summary collapse
- #rapid_actions(options = {}) ⇒ Object
- #rapid_base_controller ⇒ Object
- #rapid_sessions_controller ⇒ Object
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(={}) include RapidApi::ActionController::ResourceActions self.model = [:model] if [:model] self.serializer = [:serializer] if [:serializer] self.model_adapter = [:model_adapter] if [:model_adapter] self.serializer_adapter = [:serializer_adapter] if [:serializer_adapter] end |
#rapid_base_controller ⇒ Object
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_controller ⇒ Object
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 |