before_action :authorize_web
before_action :set_locale
- before_action :require_user
+
+ authorize_resource :class => ClientApplication
def index
@client_applications = current_user.client_applications
def update
@client_application = current_user.client_applications.find(params[:id])
- if @client_application.update_attributes(application_params)
+ if @client_application.update(application_params)
flash[:notice] = t "oauth_clients.update.flash"
redirect_to :action => "show", :id => @client_application.id
else