Class: AlphaApi::ApplicationRecordSerializer
- Inherits:
-
Object
- Object
- AlphaApi::ApplicationRecordSerializer
- Includes:
- FastJsonapi::ObjectSerializer
- Defined in:
- lib/alpha_api/serializers/application_record_serializer.rb
Class Method Summary collapse
Class Method Details
.requested?(name) ⇒ Boolean
8 9 10 |
# File 'lib/alpha_api/serializers/application_record_serializer.rb', line 8 def requested?(name) ->(_record, params) { params && params[:included]&.include?(name.to_s) } end |