Added report model and controller. Report model reference two metric ( current and previous) and tariff
Added seed for reports and tariffs.
Added last reports rendering on the homepage.
Fixed links in side last reports block.
Added has_many relations metric->report and tariff->report.
Fixed seeds.rb: now it uses metric and report objects for references instead of id's.
Added simple report rendering.
When metric saved - report automatically generates and user redirected to report page.
Updated seed - now tariff created before metrics so starting with second metric report also generated and saved automatically.
Removed unused current_tariff variable from seed.
Removed fixtures. Added factory_girl gem. Started fixing tests.
Added field report for metric. It filled after report creation to prevent query to metric.reports.
Fixed metrics_controller tests.
Fixed all default tests. Now all pass. Removed perfomance test.
Added tests for metric.
Added test for metric difference and previous_record method.
Added tests for report model.
Added tests to Tariff model. used_in method renamed to that_was
Removed rdoc readme. Added markdown.
Added controller to show report on index page or redirect to new_metric.
Added functional tests for this behaviour.
Added timecop gem.
Added extension method round_to_month for Date and TimeWithZone. Added tests for this method.