spec/dummy/script.rb in social_framework-0.0.2 vs spec/dummy/script.rb in social_framework-0.0.3
- old
+ new
@@ -1,8 +1,27 @@
-graph = SocialFramework::NetworkHelper::Graph.get_instance 1
+# 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}"
+# 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