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
|
end
|
||||||
|
|
||||||
def raspberry
|
def raspberry
|
||||||
@raspberry ||= Raspberry.find params[:controller_id]
|
@raspberry ||= Raspberry.find_or_create_by! params[:controller_id]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Procesa la transacción
|
# Procesa la transacción
|
||||||
|
|
Loading…
Reference in a new issue