65. 1.8.7-p358 :001 > module A; def foo; "A"; end; end
=> nil
1.8.7-p358 :002 > module B; def foo; "B"; end; end
=> nil
1.8.7-p358 :003 > class C; include A; include B; end
=> C
66. 1.8.7-p358 :001 > module A; def foo; "A"; end; end
=> nil
1.8.7-p358 :002 > module B; def foo; "B"; end; end
=> nil
1.8.7-p358 :003 > class C; include A; include B; end
=> C
1.8.7-p358 :004 > C.new.foo
67. 1.8.7-p358 :001 > module A; def foo; "A"; end; end
=> nil
1.8.7-p358 :002 > module B; def foo; "B"; end; end
=> nil
1.8.7-p358 :003 > class C; include A; include B; end
=> C
1.8.7-p358 :004 > C.new.foo
=> “B”
68. 1.8.7-p358 :001 > module A; def foo; "A"; end; end
=> nil
1.8.7-p358 :002 > module B; def foo; "B"; end; end
=> nil
1.8.7-p358 :003 > class C; include A; include B; end
=> C
1.8.7-p358 :004 > C.new.foo
=> “B”
1.8.7-p358 :005 > class D; include A, B; end
69. 1.8.7-p358 :001 > module A; def foo; "A"; end; end
=> nil
1.8.7-p358 :002 > module B; def foo; "B"; end; end
=> nil
1.8.7-p358 :003 > class C; include A; include B; end
=> C
1.8.7-p358 :004 > C.new.foo
=> “B”
1.8.7-p358 :005 > class D; include A, B; end
=> D
70. 1.8.7-p358 :001 > module A; def foo; "A"; end; end
=> nil
1.8.7-p358 :002 > module B; def foo; "B"; end; end
=> nil
1.8.7-p358 :003 > class C; include A; include B; end
=> C
1.8.7-p358 :004 > C.new.foo
=> “B”
1.8.7-p358 :005 > class D; include A, B; end
=> D
1.8.7-p358 :006 > D.new.foo
71. 1.8.7-p358 :001 > module A; def foo; "A"; end; end
=> nil
1.8.7-p358 :002 > module B; def foo; "B"; end; end
=> nil
1.8.7-p358 :003 > class C; include A; include B; end
=> C
1.8.7-p358 :004 > C.new.foo
=> “B”
1.8.7-p358 :005 > class D; include A, B; end
=> D
1.8.7-p358 :006 > D.new.foo
=> “A”
166. 1.8.7-p358 :001 > require ‘benchmark’
=> true
1.8.7-p358 :002 > n = 50000
003 > Benchmark.bm(7) do |x|
004 > x.report("for:") { for i in 1..n; a = "1"; end }
005 > x.report("times:") { n.times do ; a = "1"; end }
006 > x.report("upto:") { 1.upto(n) do ; a = "1"; end }
007 > end
167. 1.8.7-p358 :001 > require ‘benchmark’
=> true
1.8.7-p358 :002 > n = 50000
003 > Benchmark.bm(7) do |x|
004 > x.report("for:") { for i in 1..n; a = "1"; end }
005 > x.report("times:") { n.times do ; a = "1"; end }
006 > x.report("upto:") { 1.upto(n) do ; a = "1"; end }
007 > end
user system total real
for: 0.020000 0.000000 0.020000 ( 0.017378)
times: 0.010000 0.000000 0.010000 ( 0.013688)
upto: 0.020000 0.000000 0.020000 ( 0.014495)
=> true
193. $ script/console --sandbox
Loading development environment in sandbox (Rails 2.3.10)
Any modifications you make will be rolled back on exit
NOTE: Gem.source_index is deprecated, use Specification...
199. $ rake notes
app/controllers/company_importers_controller.rb:
* [241] [TODO] refactor to raise ActiveRecord::RecordNotFound instead of nil.
app/controllers/open_id_controller.rb:
* [ 44] [TODO] refactor the below.
app/controllers/open_social_controller.rb:
* [134] [TODO] Remove this code after enough data was collected (trobrock)
app/helpers/reports_helper.rb:
* [ 12] [TODO] The core utility of these helpers could be moved into the BaseReport class
and then we can get the date ranges from the controller.
app/models/axe/outright/aggregation/aggregation_director.rb:
* [ 33] [TODO] remove this if possible - it's here b/c you get the 'expected
* [131] [TODO] why is reload necessary?
...