Skip to content

Commit

Permalink
fix deprecated string representation of middleware class
Browse files Browse the repository at this point in the history
  • Loading branch information
msimonborg committed May 10, 2017
1 parent 5cf6784 commit b15d7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Application < Rails::Application

# For example, this will allow GET, POST or OPTIONS requests from any
# origin on any resource.
config.middleware.insert_before 0, 'Rack::Cors' do
config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*', headers: :any, methods: %i[get post options]
Expand Down

0 comments on commit b15d7e7

Please sign in to comment.