app/helpers/application_helper/button/rbac_role_edit.rb
class ApplicationHelper::Button::RbacRoleEdit < ApplicationHelper::Button::Basic
needs :@record
def disabled?
@error_message = _('This Role is Read Only and can not be edited') if @record.read_only
@error_message.present?
end
end