Class: GamesRepository

Inherits:
DefaultRepository show all
Defined in:
app/repositories/games_repository.rb

Instance Attribute Summary

Attributes inherited from DefaultRepository

#klass

Instance Method Summary collapse

Methods inherited from DefaultRepository

#all, #create, #find, #find_all, #find_or_initialize, #initialize, #new

Constructor Details

This class inherits a constructor from DefaultRepository

Instance Method Details

#update(id) ⇒ Object


2
3
4
5
6
7
# File 'app/repositories/games_repository.rb', line 2

def update(id)
  game = find(id: id)
  game.touch(:updated_at)

  game
end