Skip to content

Commit

Permalink
Merge pull request #112 from DanielNill/rails_4_2_compatability_for_cors
Browse files Browse the repository at this point in the history
Remove responders dependency
  • Loading branch information
orlando committed Nov 23, 2015
2 parents 3ae1111 + 685a01e commit aafd0fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/attachinary/cors_controller.rb
@@ -1,9 +1,10 @@
module Attachinary
class CorsController < Attachinary::ApplicationController
respond_to :json

def show
respond_with request.query_parameters, :content_type => 'text/plain'
respond_to do |format|
format.json { render json: request.query_parameters, content_type: "text/plain" }
end
end
end
end

0 comments on commit aafd0fd

Please sign in to comment.