Skip to content

ActiveRecord association helper #24

Description

@esmarkowski

Add convenience method to associate ActiveRecord model ids to the Stretchy::Record

It may be that using the normal association methods will work fine.

class Post < Stretchy::Record
  # where User is an ActiveRecord model
  belongs_to :user, class: User
  # where Usage is a Stretchy::Record 
  belongs_to :usage 
end
post.user #User

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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