Sha256: 980ea58d29b287cc7679ba6ecc9ebcc8138c7fec1c6ca3fa7841356230d8aebc

Contents?: true

Size: 228 Bytes

Versions: 4

Compression:

Stored size: 228 Bytes

Contents

class SignInService < Aldous::Service
  attr_reader :session, :user

  def initialize(session, user)
    @session = session
    @user = user
  end

  def perform
    session[:user_id] = user.id
    Result::Success.new
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aldous-1.1.3 examples/basic_todo/app/services/sign_in_service.rb
aldous-1.1.2 examples/basic_todo/app/services/sign_in_service.rb
aldous-1.0.1 examples/basic_todo/app/services/sign_in_service.rb
aldous-1.0.0 examples/basic_todo/app/services/sign_in_service.rb