diff options
| author | Zog | 2018-01-17 09:36:15 +0100 |
|---|---|---|
| committer | Zog | 2018-01-25 17:17:59 +0100 |
| commit | 377ddcd306fb9e61e734aaf3762e05f448938af0 (patch) | |
| tree | 4947ecf95e346adb1eb5578a4cd559a7fa146d33 /lib | |
| parent | 44d38ab6b6a05a56a73c443c62f4a88d1733f274 (diff) | |
| download | chouette-core-377ddcd306fb9e61e734aaf3762e05f448938af0.tar.bz2 | |
Refs #5586 @1.5h; Migrate more decorators
- Remove ApiKeyDecorator (never used)
- Migrate CalendarDecorator
- Migrate CompanyDecorator
- Migrate TimeTableDecorator
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/af83/decorator.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/af83/decorator.rb b/lib/af83/decorator.rb index 82954adc1..80958fa02 100644 --- a/lib/af83/decorator.rb +++ b/lib/af83/decorator.rb @@ -111,6 +111,7 @@ class AF83::Decorator < ModelDecorator REQUIRED_ATTRIBUTES = %i(href content) attr_reader :context + attr_reader :action def initialize options={} @options = options @@ -233,7 +234,7 @@ class AF83::Decorator < ModelDecorator if block_given? link = Link.new(@options) yield link - return link.bind_to_context(context, @options[:action]).to_html + return link.bind_to_context(context, @action).to_html end context.h.link_to content, href, html_options end |
