def full_permission_name(root_name, object = nil)
      return root_name.to_sym unless object

      suffix = object.class.name.downcase
      if root_name.to_s.ends_with?(suffix)
        root_name.to_sym
      else
        "#{root_name}_#{suffix}".to_sym
      end
    end
def full_permission_name(root_name, object = nil)
      return root_name.to_sym unless object

      suffix = object.class.name.downcase
      if root_name.to_s.ends_with?(suffix)
        root_name.to_sym
      else
        "#{root_name}_#{suffix}".to_sym
      end
    end
Will convert :edit to :edit_event if object is an event
 but if root_name is already edit_event, no change will be made

 @param [String] root_name the name of the permission
 @param [Object] object the object the permission is for
 @return [Symbol] full permission name