Sha256: eaba8fc4efcb988416a0afa770d55a39ad520f8627b87d4e4a27f6bb01db6a14
Contents?: true
Size: 778 Bytes
Versions: 2
Compression:
Stored size: 778 Bytes
Contents
class RailsAuthAdmin::OauthUsersController < RailsAuthAdmin::BaseController before_action :set_oauth_user, only: [:show, :update, :destroy] def index if params[:user_id] @user = User.find(params[:user_id]) @oauth_users = @user.oauth_users.page(params[:page]) else @oauth_users = OauthUser.page(params[:page]) end end def show end def update if @oauth_user.update(oauth_user_params) redirect_to @oauth_user, notice: 'Oauth user was successfully updated.' else render head: :no_content end end def destroy @oauth_user.destroy redirect_to oauth_users_url, notice: 'Oauth user was successfully destroyed.' end private def set_oauth_user @oauth_user = OauthUser.find(params[:id]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_auth-1.0.5 | app/controllers/rails_auth_admin/oauth_users_controller.rb |
rails_auth-1.0.4 | app/controllers/rails_auth_admin/oauth_users_controller.rb |