Sha256: 95036647920818bf679d660a843c82fe72a540193c229d44d71128d4a41a7e94

Contents?: true

Size: 205 Bytes

Versions: 3

Compression:

Stored size: 205 Bytes

Contents

class Admin::MasqueradesController < Devise::MasqueradesController
  def show
    authorize!(:masquerade, User)
    @user=User.find_by(id: params[:id])
    @user&&@user.update_from_gram
    super
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gorg_engine-1.2.4 app/controllers/admin/masquerades_controller.rb
gorg_engine-1.2.3 app/controllers/admin/masquerades_controller.rb
gorg_engine-1.2.0 app/controllers/admin/masquerades_controller.rb