Skip to content

Does not handle polymorphic types #17

Description

@mhluska

For example:

{
  "data" => {
    "attributes" => { ... }, 
    "relationships" => {
      "payable" => {
        "data" => {
          "type" => "orders", 
          "id" => "535"
        }
      }
    }, 
    "type" => "payments"
  }
}

This would give nil for Payment.new(restify_param(:payment).require(:payment).permit(:payable_type, :payable_id).payable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions