C0 code coverage information
Generated on Sun Jun 11 23:15:15 CEST 2006 with rcov 0.6.0
Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
1 require_dependency 'sidebars/sidebar_controller'
2
3 class Sidebar < ActiveRecord::Base
Calls
1 #<Class:ActiveRecord::Base>#inherited at vendor/rails/activerecord/lib/active_record/base.rb:246
4 # acts_as_list
5 serialize :active_config
Calls
1 #<Class:ActiveRecord::Base>#serialize at vendor/rails/activerecord/lib/active_record/base.rb:575
6 serialize :staged_config
Calls
1 #<Class:ActiveRecord::Base>#serialize at vendor/rails/activerecord/lib/active_record/base.rb:575
7
8 def self.find_all_visible
Called by
5 components/sidebars/sidebar_controller.rb:90 in '#<Class:Controllers::Sidebars::SidebarController>#enabled_sidebars'
1 components/sidebars/sidebar_controller.rb:90 in '#<Class:Controllers::Sidebars::SidebarController>#enabled_sidebars'
9 find :all, :conditions => 'active_position is not null', :order => 'active_position'
Calls
6 #<Class:ActiveRecord::Base>#find at vendor/rails/activerecord/lib/active_record/base.rb:378
10 end
11
12 def self.find_all_staged
13 find :all, :conditions => 'staged_position is not null', :order => 'staged_position'
14 end
15
16 def self.purge
17 delete_all('active_position is null and staged_position is null')
18 end
19
20 def publish
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
21 self.active_config=self.staged_config
22 self.active_position=self.staged_position
23 end
24
25 def sidebar_controller
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
26 @sidebar_controller||=Sidebars::SidebarController.available_sidebars.find { |s| s.short_name == self.controller }
27 end
28
29 def active_config
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
30 self[:active_config]||{}
31 end
32
33 def html_id
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
34 controller+'-'+id.to_s
35 end
36 end
Generated using the rcov code coverage analysis tool for Ruby version 0.6.0.