diff options
| -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 |
