Sha256: 8bf3eda82a3bbd8743014affb10c0c7692ade0b75e5a3cf2a26385ff6062265d
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception private ## # Semplificazione in sviluppo di un possibile utente def current_user User.first || User.create(username: 'mario', surname: 'rossi',email:"example@tld.it") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kono_utils-1.1.1 | spec/dummy/app/controllers/application_controller.rb |
kono_utils-1.1.0 | spec/dummy/app/controllers/application_controller.rb |