module RailsConnector class BasicWidget include AttributeContent def self.type_computer @_type_computer ||= TypeComputer.new(RailsConnector::BasicWidget, ::Widget) end def self.reset_type_computer! @_type_computer = nil end attr_accessor :id, :obj alias_method :initialize, :update_data def obj_class data_from_cms.value_of('_obj_class') end def ==(other) other.respond_to?(:obj) && obj == other.obj && other.respond_to?(:id) && id == other.id end def eql?(other) self == other end def hash (id + obj.id).hash end end end