Skip to content

add has_and_belongs_to_many #364

Closed
Closed
@catmando

Description

@catmando

This should work:

  def self.has_and_belongs_to_many(other, opts = {})
    has_many other, opts.merge(through: [other, table_name].sort.join('_'))
  end if RUBY_ENGINE == 'opal'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-to-releaseInternal Use Only: Has been fixed, specs passing and pushed to edge branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions