require_dependency "roles_helper" module GlobalRoles module RolesHelperPatch def self.included(base) # :nodoc: base.class_eval do unloadable def permissions_id permissions "permissions_" + permissions[0].hash.to_s end end end end end RolesHelper.send(:include, GlobalRoles::RolesHelperPatch)