Skip to content
This repository was archived by the owner on Jul 11, 2020. It is now read-only.
This repository was archived by the owner on Jul 11, 2020. It is now read-only.

Allow model-based associations for belongs_to and has_one #3

Description

@dmcinnes

Does it make sense to have model-based association on belongs_to and has_one like they are available on has_many

class API::V1::Post < Daylight::API
  has_one :blog, through: :association
  has_one :company, through: association
  has_many :comments, through: association # only one currently supported
end

Metadata

Metadata

Assignees

No one assigned

    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