require 'scrivito/basic_widget' module Scrivito class BasicWidget # patch hash to handle numeric ids def hash if @obj && @id (id.to_s + obj.id.to_s).hash else super end end def self.widget_class self end end end