make brakeman happier and add it to travis
This commit is contained in:
parent
ca68115b1f
commit
ffa2f3d1a9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue