Skip to content

hbtm with order brokes edit page #2067

@yahor

Description

@yahor

class Group < ActiveRecord::Base
has_and_belongs_to_many :users, -> { order last_name: :asc }
end

group edit page:
ArgumentError - wrong number of arguments (1 for 0):
rails_admin (0.6.3) lib/rails_admin/adapters/active_record/association.rb:61:in `read_only?'

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions