Crear las raspberries ad-hoc
This commit is contained in:
parent
4c1eac1f2b
commit
55519925ce
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class ApiController < ActionController::API
|
|||
end
|
||||
|
||||
def raspberry
|
||||
@raspberry ||= Raspberry.find params[:controller_id]
|
||||
@raspberry ||= Raspberry.find_or_create_by! params[:controller_id]
|
||||
end
|
||||
|
||||
# Procesa la transacción
|
||||
|
|
Loading…
Reference in a new issue