Sha256: 97a54f147e563c98359ed288e4a7a3501b8d608e6b47834a3ebb6b5a767af418
Contents?: true
Size: 841 Bytes
Versions: 19
Compression:
Stored size: 841 Bytes
Contents
class ClearanceController < Clearance::BaseController protect_from_forgery def create user = User.find_by(:email => "testtest@test.test") User.new({ :email => "testtest@test.test", :name => "Clearance User", :first_name => "Clearance", :last_name => "User", :password => "Password" }).save if user.nil? render json: {} end def unhandled user = User.find_by(:email => "testtest@test.test") unless user.nil? @current_user = user cookies['remember_token'] = user.remember_token end generate_unhandled_error end def handled user = User.find_by(:email => "testtest@test.test") unless user.nil? @current_user = user cookies['remember_token'] = user.remember_token end Bugsnag.notify("handled string") render json: {} end end
Version data entries
19 entries across 12 versions & 1 rubygems