Skip to content

Instantly share code, notes, and snippets.

@brunoalano
Created November 17, 2015 21:33
Show Gist options
  • Save brunoalano/9f915b95e8ccb0423835 to your computer and use it in GitHub Desktop.
Save brunoalano/9f915b95e8ccb0423835 to your computer and use it in GitHub Desktop.
Path: app/controllers/company/api/application_controller.rb
class Company::Api::ApplicationController < Company::ApplicationController
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :null_session
# Disable Layout
layout false
end
@brunoalano
Copy link
Author

Issue:

/Users/brunoalano/projetos/engaged/app/controllers/company/api/application_controller.rb:1: warning: toplevel constant Api referenced by Company::Api
/Users/brunoalano/projetos/engaged/app/controllers/company/api/application_controller.rb:1: warning: toplevel constant ApplicationController referenced by Company::ApplicationController

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment