Sha256: 444f0cb37d97d3c548bf0489c70616968f0c3e4f712f098781bce2c73141b580
Contents?: true
Size: 616 Bytes
Versions: 12
Compression:
Stored size: 616 Bytes
Contents
class WardenController < ActionController::Base protect_from_forgery def index render json: {} end def create User.new({ :email => "testtest@test.test", :name => "Warden User", :first_name => "Warden", :last_name => "User" }).save unless User.where(:email => "testtest@test.test").size > 0 render json: {} end def unhandled warden = request.env['warden'] warden.authenticate! generate_unhandled_error end def handled warden = request.env['warden'] warden.authenticate! Bugsnag.notify("handled string") render json: {} end end
Version data entries
12 entries across 12 versions & 1 rubygems