Move code for issue creation to service.
The goal of suych refactoring is to get rid of observers.
Its much easier to test and code when object creation and all other
related actions done in one class instead of splited across observers,
callbacks etc.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
app/services/issues/create_service.rb
0 → 100644
spec/services/issues/create_service_spec.rb
0 → 100644
Please
register
or
sign in
to comment