diff options
| author | Xinhui | 2017-02-15 10:45:08 +0100 | 
|---|---|---|
| committer | Xinhui | 2017-02-15 10:45:08 +0100 | 
| commit | c6230a7ca7ff6cbcb1d685527f80e0fb3d1aad8f (patch) | |
| tree | bc5bc55d7df6164df753fac45373244827f9fd89 | |
| parent | 35b6a919e1eedb10b88385fb7f36c799794225d6 (diff) | |
| download | chouette-core-c6230a7ca7ff6cbcb1d685527f80e0fb3d1aad8f.tar.bz2 | |
Wip line_footnotes#show json format
| -rw-r--r-- | app/controllers/line_footnotes_controller.rb | 1 | ||||
| -rw-r--r-- | app/views/line_footnotes/show.rabl (renamed from app/views/footnotes/show.rabl) | 4 | 
2 files changed, 2 insertions, 3 deletions
| diff --git a/app/controllers/line_footnotes_controller.rb b/app/controllers/line_footnotes_controller.rb index 0e14eed04..51516c3ff 100644 --- a/app/controllers/line_footnotes_controller.rb +++ b/app/controllers/line_footnotes_controller.rb @@ -1,7 +1,6 @@  class LineFootnotesController < ChouetteController    defaults :resource_class => Chouette::Line, :instance_name => 'line'    before_action :check_policy, only: [:edit, :update, :destroy] -    respond_to :json, :only => :show    belongs_to :referential diff --git a/app/views/footnotes/show.rabl b/app/views/line_footnotes/show.rabl index 12ff83b6c..5cec1ceb5 100644 --- a/app/views/footnotes/show.rabl +++ b/app/views/line_footnotes/show.rabl @@ -2,8 +2,8 @@ collection @footnotes  node do |footnote|    { -    :id => footnote.id, -    :code => footnote.code, +    :id    => footnote.id, +    :code  => footnote.code,      :label => footnote.label    }  end | 
