active_admin_role
active_admin_role copied to clipboard
undefined method `delete' for :ok:Symbol
Steps to reproduce
Hi I am gettin the above error all of a sudden. My app was working fine. I have included the permisions code. The rest of the app is working. I could never edit my permissions however.
thank you
- Explain steps to reproduce.
- Paste your error logs.
- Tell us your repository of app, if you ok.
ActiveAdmin version:2.0.0 alpha
ActiveAdminRole version:0.2.1
**Rails version 5.21
**Ruby version 2.5.3
status_tag (record.can? ? 'yes' : 'no'), label: record.state https://activeadmin.info/12-arbre-components.html#status-tag
@hiddenfile Thanks you for opening this issue and explain reproduce process. I appreciate to your work. Currently I don't use ActiveAdmin. If you could do, please open a pull request to fix this bug.
@luilver Please check this bug and fix it, if you could :pray:
@yhirano55 already working on it !
@quietwar I can reproduce this issue with the information you provided. Could you please update your bundle and check if this still happen ?
@yhirano55 I have bundled using active_admin_role_sample with Ruby 5.2.3, Rails 5.2.1, active_admin_role 0.2.1, activeadmin 2.0.0 (not alpha but release e80a629 from April 25, 2019) and it just worked fine.
There was a similar problem, a small change in the code helped:
From:
status_tag(record.state, record.can? ? :ok : nil)
To:
status_tag(record.can? ? :yes : :grey, label: record.state)
P.S. :yes - used for change color :grey - used as cork