Skip to content

Commit aafd0fd

Browse files
committed
Merge pull request #112 from DanielNill/rails_4_2_compatability_for_cors
Remove responders dependency
2 parents 3ae1111 + 685a01e commit aafd0fd

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)