Class: SirTracksAlot::Reports::RootStemReport
- Inherits:
-
FilterReport
- Object
- Ruport::Controller
- Report
- SirTracksAlotReport
- FilterReport
- SirTracksAlot::Reports::RootStemReport
- Defined in:
- lib/sir_tracks_alot/reports/root_stem_report.rb
Defined Under Namespace
Modules: Helpers Classes: HTML
Constant Summary
Constants inherited from FilterReport
Instance Attribute Summary
Attributes inherited from SirTracksAlotReport
Attributes inherited from Report
Instance Method Summary collapse
-
#setup ⇒ Object
Build up reports by filtering things as follows: actions = [] roots = {}.
Methods inherited from Report
Instance Method Details
#setup ⇒ Object
Build up reports by filtering things as follows: actions = [] roots = {}
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/sir_tracks_alot/reports/root_stem_report.rb', line 11 def setup .actions ||= Activity::ACTIONS .filters ||= {} .actions.each do |action| .roots.each do |root| cat, target = root.kind_of?(Array) ? root : [root, root] begin .filters["#{cat||target} index"] = {:category => cat, :target => /^\/#{target}$/, :action => action} .filters["#{cat||target} pages"] = {:category => cat, :target => /^\/#{target}\/.+$/, :action => action} rescue RegexpError # swallow end end end super end |