diff options
| author | Luc Donnet | 2015-05-26 11:30:45 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2015-05-26 11:30:45 +0200 | 
| commit | 6168aae8e5e07160112b2fc66247548b559a2a03 (patch) | |
| tree | 1c3473577b6ef6e9152499193871272db476b09c /app/controllers/api_keys_controller.rb | |
| parent | 1b504b47c0a2f5ab7d07f25e25eee6cf19cbbae6 (diff) | |
| download | chouette-core-6168aae8e5e07160112b2fc66247548b559a2a03.tar.bz2 | |
Permit api_key creation in controller Fix Refs #0035809
Diffstat (limited to 'app/controllers/api_keys_controller.rb')
| -rw-r--r-- | app/controllers/api_keys_controller.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/app/controllers/api_keys_controller.rb b/app/controllers/api_keys_controller.rb index fea8f66b3..35a84da87 100644 --- a/app/controllers/api_keys_controller.rb +++ b/app/controllers/api_keys_controller.rb @@ -12,6 +12,11 @@ class ApiKeysController < ChouetteController    def destroy      destroy! { referential_path(@referential) }    end + +  private +  def api_key_params +    params.require(:api_key).permit( :name ) +  end    end | 
