app/controllers/api_controller/normalizer.rb
# Note: revisit merging direct and virtual normalize hash methods here once support for
# virtual subcollections is added.
revisit merging direct and virtual normalize hash methods here once support for
virtual subcollections is added.
revisit merging direct and virtual normalize hash methods here once support for virtual subcollections is added .
def normalize_select_attributes(obj, opts)
      if opts[:render_attributes].present?
        opts[:render_attributes]
      else
        obj.respond_to?(:attributes) ? obj.attributes.keys : obj.keys
      end
    end
def normalize_select_attributes ( obj , opts ) if opts [ :render_attributes ] . present? opts [ :render_attributes ] else obj . respond_to? ( :attributes ) ? obj . attributes . keys : obj . keys end end
Note: revisit merging direct and virtual normalize hash methods here once support for
virtual subcollections is added.
Note : revisit merging direct and virtual normalize hash methods here once support for virtual subcollections is added .
obj
<not_specific>
opts
<not_specific>