Skip to content

Commit 685a01e

Browse files
committed
move cors controller to use method level respond_to so responders gem isnt a dependency for apps running rails >= 4.2
1 parent 3ba29a5 commit 685a01e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module Attachinary
22
class CorsController < Attachinary::ApplicationController
3-
respond_to :json
43

54
def show
6-
respond_with request.query_parameters, :content_type => 'text/plain'
5+
respond_to do |format|
6+
format.json { render json: request.query_parameters, content_type: "text/plain" }
7+
end
78
end
89
end
910
end

0 commit comments

Comments
 (0)