nighty
This commit is contained in:
parent
49e2421171
commit
9d747d6d0d
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Rails\ActionController\Exception;
|
namespace Rails\ActionController\Exception;
|
||||||
|
|
||||||
class DoubleRenderException extends Rails\Exception\LogicException implements ExceptionInterface
|
class DoubleRenderException extends \Rails\Exception\LogicException implements ExceptionInterface
|
||||||
{
|
{
|
||||||
protected $title = 'Double Render Error';
|
protected $title = 'Double Render Error';
|
||||||
}
|
}
|
@ -203,8 +203,13 @@ class Connection
|
|||||||
$block = $params;
|
$block = $params;
|
||||||
}
|
}
|
||||||
$this->resource()->beginTransaction();
|
$this->resource()->beginTransaction();
|
||||||
$block();
|
try {
|
||||||
$this->resource()->commit();
|
$block();
|
||||||
|
$this->resource()->commit();
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$this->resource()->rollBack();
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function resource()
|
public function resource()
|
||||||
|
Reference in New Issue
Block a user