Skip to content
Snippets Groups Projects
Commit c5fc6c7d authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

disable feature 'allow_client_application' in development env

parent a9f1b5a2
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ class ApplicationController < ActionController::API ...@@ -8,7 +8,7 @@ class ApplicationController < ActionController::API
before_filter :set_paper_trail_whodunnit before_filter :set_paper_trail_whodunnit
# check if client application is allowed to consumes the API. # check if client application is allowed to consumes the API.
before_filter :allow_client_application before_filter :allow_client_application, if: -> { Feature.active?(:allow_client_application) }
# Prevent CSRF attacks by raising an exception. # Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead. # For APIs, you may want to use :null_session instead.
......
development: development:
features: features:
barra_brasil: false allow_client_application: false
test: test:
features: features:
barra_brasil: true allow_client_application: true
production: production:
features: features:
barra_brasil: true allow_client_application: true
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment