class Engine2::LoginAction

Public Instance Methods

after_approve(handler, record) click to toggle source
# File lib/engine2/action/infra.rb, line 290
def after_approve handler, record
    handler.session[:user] = record
end
record(handler, record) click to toggle source
# File lib/engine2/action/infra.rb, line 294
def record handler, record
    {errors: nil, user!: handler.user.to_hash}
end
validate_record(handler, record, parent_id) click to toggle source
# File lib/engine2/action/infra.rb, line 285
def validate_record handler, record, parent_id
    super
    record.values[:password] = nil
end