Class: Biscuit::ConsentController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Biscuit::ConsentController
- Defined in:
- app/controllers/biscuit/consent_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
13 14 15 16 |
# File 'app/controllers/biscuit/consent_controller.rb', line 13 def destroy Biscuit::Consent.clear() render json: { ok: true } end |
#update ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/biscuit/consent_controller.rb', line 5 def update categories = params.require(:categories).permit( Biscuit.configuration.categories.keys.map(&:to_s) ).to_h Biscuit::Consent.write(, categories) render json: { ok: true } end |