Sha256: eac827c4d964b9f9344287f06125d52dbd606691c1dc1120c16726b74461b52d

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

# 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_framework-0.0.3 spec/dummy/script.rb