When trying to edit an object with rails-admin, I get some exception:
ArgumentError - wrong number of arguments (given 1, expected 0)
This is caused by RailsAdmin::Adapters::ActiveRecord::Association#read_only? trying to invoke the scope with instance_eval, which provides an argument.
Hello,
I am farcing an issue with my
has_and_belongs_to_many
association, which has a scope.When trying to edit an object with rails-admin, I get some exception:
This is caused by
RailsAdmin::Adapters::ActiveRecord::Association#read_only?
trying to invoke the scope withinstance_eval
, which provides an argument.https://github.com/railsadminteam/rails_admin/blob/master/lib/rails_admin/adapters/active_record/association.rb#L87
Thanks