module BeyondTheApi::Base
Public Instance Methods
add_fields_and_include_to_render_options(options)
click to toggle source
# File lib/beyond_the_api/base.rb, line 3 def add_fields_and_include_to_render_options(options) options[:fields] = params[:fields]&.split(',')&.map(&:to_sym) options[:include] = params[:include]&.split(',')&.map(&:to_sym) options end