# graph = SocialFramework::NetworkHelper::GraphStrategyDefault.get_instance 1 # t1 = Time.now # u1 = SocialFramework::User.find 1 # graph.build u1 # t2 = Time.now # result = t2 - t1 # puts "Tempo para montagem do grafo: #{result}" # f = Foo.new Set class Foo < ActiveRecord::Base has_one :bar end class Bar < ActiveRecord::Base belongs_to :foo def lala "LALA SUPERCLASSE" end end # class Bar2 < Bar # def lala # "LALA SUBCLASSE" # end # end