Rails Admin actions in model -
Rails Admin actions in model -
i have sensitive civic involvement rails app. in it's rails admin have disabled delete , bulk_delete actions. in rails_admin.rb have like
railsadmin.config |config| config.actions dashboard # mandatory index # mandatory new export show edit # delete # bulk_delete end end how can override behaviour specific models, example, siteposts? have tried using "rails_admin do" block in model, not working obviously.
rails_admin configure :site_post actions new show edit delete end end end
you can utilize only method enabling actions specific models. instance, in rails_admin.rb:
config.actions dashboard # mandatory index # mandatory new delete sitepost end end the only , except methods documented in wiki under base action.
ruby-on-rails-4 rails-admin
Comments
Post a Comment