Permalink
Browse files

[api] Remove users_controller_decorator

Developers will now need to add this themselves, or use an authentication extension which already provides it
  • Loading branch information...
1 parent 13c3d97 commit 177977da5ce1a2978dfb1f81e62c94d62979455b @radar radar committed May 29, 2012
Showing with 0 additions and 17 deletions.
  1. +0 −17 api/app/controllers/spree/admin/users_controller_decorator.rb
View
17 api/app/controllers/spree/admin/users_controller_decorator.rb
@@ -1,17 +0,0 @@
-Spree::Admin::UsersController.class_eval do
- before_filter :load_roles, :only => [:edit, :new, :update, :create, :generate_api_key, :clear_api_key]
-
- def generate_api_key
- if @user.generate_api_key!
- flash.notice = t('key_generated', :scope => 'spree.api')
- end
- redirect_to edit_admin_user_path(@user)
- end
-
- def clear_api_key
- if @user.clear_api_key!
- flash.notice = t('key_cleared', :scope => 'spree.api')
- end
- redirect_to edit_admin_user_path(@user)
- end
-end

0 comments on commit 177977d

Please sign in to comment.