buscar o crear la raspberry por el nombre
This commit is contained in:
parent
8de7a8a74c
commit
3f9d75429b
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class ReadingsController < ActionController::API
|
|||
end
|
||||
|
||||
def raspberry
|
||||
@raspberry ||= Raspberry.find_or_create_by! params[:controller_id]
|
||||
@raspberry ||= Raspberry.find_or_create_by! name: params[:controller_id]
|
||||
end
|
||||
|
||||
# Procesa la transacción
|
||||
|
|
Loading…
Reference in a new issue