diff options
| author | Xinhui | 2017-01-04 11:35:25 +0100 |
|---|---|---|
| committer | Xinhui | 2017-01-04 11:35:25 +0100 |
| commit | f40d4c1940426124bb4a8464b707cd673d9d5ee6 (patch) | |
| tree | b2ed99782cd122b97b3950720b3b4f559bb34ba4 /app | |
| parent | 9c08e8f9f42906f9be17a8fbce7fcd83dbd51179 (diff) | |
| download | chouette-core-f40d4c1940426124bb4a8464b707cd673d9d5ee6.tar.bz2 | |
Fix attempt migration
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/referentials/_reflines.html.slim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referentials/_reflines.html.slim b/app/views/referentials/_reflines.html.slim index 730a45e0a..c0f0e03b7 100644 --- a/app/views/referentials/_reflines.html.slim +++ b/app/views/referentials/_reflines.html.slim @@ -1,7 +1,7 @@ -- if @reflines.any? +- if @reflines && @reflines.any? p strong Lignes : - + = table_builder @reflines, { 'Oid' => Proc.new { |n| n.objectid.local_id }, @reflines.human_attribute_name(:id) => 'id', @reflines.human_attribute_name(:number) => 'number', @reflines.human_attribute_name(:name) => 'name', @reflines.human_attribute_name(:network) => Proc.new { |n| n.try(:network).try(:name) }, @reflines.human_attribute_name(:company) => Proc.new { |n| n.try(:company).try(:name) } }, |
