aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/line_footnotes_controller.rb1
-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