make brakeman happier and add it to travis

This commit is contained in:
Devin Howard 2016-06-14 16:53:54 +08:00
parent ca68115b1f
commit ffa2f3d1a9
2 changed files with 2 additions and 2 deletions

View file

@ -18,4 +18,4 @@ before_script:
- nvm use stable - nvm use stable
- (cd app/assets/javascripts && npm install) - (cd app/assets/javascripts && npm install)
script: script:
- bundle exec rspec && (cd app/assets/javascripts && npm test) - bundle exec rspec && (cd app/assets/javascripts && npm test) && brakeman -q -z

View file

@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
include Pundit include Pundit
include PunditExtra include PunditExtra
rescue_from Pundit::NotAuthorizedError, with: :handle_unauthorized rescue_from Pundit::NotAuthorizedError, with: :handle_unauthorized
protect_from_forgery, with: :exception protect_from_forgery(with: :exception)
before_action :get_invite_link before_action :get_invite_link
after_action :allow_embedding after_action :allow_embedding