diff options
| author | Xinhui | 2017-04-06 12:26:38 +0200 |
|---|---|---|
| committer | Xinhui | 2017-04-06 12:26:38 +0200 |
| commit | eae1ced2690f7f09f81e8e6fb5341eb230ada8bb (patch) | |
| tree | 5182f5c73182406f73b8074287847b2d5a5634d4 | |
| parent | 1338b719589e7a149130981aa1f0e01e05f8a1b1 (diff) | |
| download | chouette-core-eae1ced2690f7f09f81e8e6fb5341eb230ada8bb.tar.bz2 | |
Fix time_tables#index json undefined presenter method
| -rw-r--r-- | app/views/time_tables/index.json.rabl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/time_tables/index.json.rabl b/app/views/time_tables/index.json.rabl index 443cb13a2..316b8817d 100644 --- a/app/views/time_tables/index.json.rabl +++ b/app/views/time_tables/index.json.rabl @@ -2,8 +2,8 @@ collection @time_tables, :object_root => false node do |time_table| { :id => time_table.id, :comment => time_table.comment, - :time_table_bounding => time_table_bounding( time_table), - :composition_info => composition_info(time_table), + :time_table_bounding => time_table.presenter.time_table_bounding, + :composition_info => time_table.presenter.composition_info, :tags => time_table.tags.join(','), :day_types => %w(monday tuesday wednesday thursday friday saturday sunday).select{ |d| time_table.send(d) }.map{ |d| time_table.human_attribute_name(d).first(2)}.join('')} end |
