diff options
| author | Thomas Haddad | 2017-04-13 11:46:58 +0200 |
|---|---|---|
| committer | Thomas Haddad | 2017-04-13 11:47:23 +0200 |
| commit | dfaf9a99c29f39ddaaaac07f31f2011a77dad049 (patch) | |
| tree | 50558257b00e75767d7b39b9e1c6f89b9fef88aa /app/views | |
| parent | e96d13ce82e9d9c6aff0468c385979d62ea67e64 (diff) | |
| download | chouette-core-dfaf9a99c29f39ddaaaac07f31f2011a77dad049.tar.bz2 | |
Add current_periode_range in time tables rabl
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/time_tables/show.rabl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/time_tables/show.rabl b/app/views/time_tables/show.rabl index a4434c518..04238c716 100644 --- a/app/views/time_tables/show.rabl +++ b/app/views/time_tables/show.rabl @@ -8,6 +8,7 @@ node do |tt| day_types: %w(monday tuesday wednesday thursday friday saturday sunday).select{ |d| tt.send(d) }.map{ |d| tt.human_attribute_name(d).first(2)}.join(''), current_month: tt.month_inspect(Date.today), periode_range: month_periode_enum(3), + current_periode_range: Date.today.beginning_of_month } end |
