diff options
| author | Teddy Wing | 2017-06-19 17:22:13 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-06-19 17:42:05 +0200 | 
| commit | 7d45b2f803d4f14f1aa0d713b0c43ed9f41a41e7 (patch) | |
| tree | b83f60da89f56f71b2c21b9946aae0bf468d8f9f /app/decorators | |
| parent | 6f1fa09dd12979933bef8bb97cdc6ae4ff10a9f0 (diff) | |
| download | chouette-core-7d45b2f803d4f14f1aa0d713b0c43ed9f41a41e7.tar.bz2 | |
CompanyDecorator#action_links: Add comment about `context` requirement
Show what keys are required to be passed as `context` to the decorator.
Missed this when I added the `context` dependency.
Refs #3479
Diffstat (limited to 'app/decorators')
| -rw-r--r-- | app/decorators/company_decorator.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/app/decorators/company_decorator.rb b/app/decorators/company_decorator.rb index 4adc51cc2..5393a5c3a 100644 --- a/app/decorators/company_decorator.rb +++ b/app/decorators/company_decorator.rb @@ -11,6 +11,10 @@ class CompanyDecorator < Draper::Decorator      object.lines.count    end +  # Requires: +  #   context: { +  #     line_referential: +  #   }    def action_links      links = []  | 
