Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationService
- attr_reader :errors
- def initialize
- @errors = {}
- end
- end
- class BaseService < ApplicationService
- attr_reader :profile, :params
- def initialize(profile, params = {})
- @profile = profile
- @params = params
- end
- class CreateService < BaseService
- def initialize(another_param:, one_more_param:)
- @another_param = another_param
- @one_more_param = one_more_param
- super() # <= выебуется, что нужно сюда чет вставить, я так понимаю @profile and @params?
- # и CreateService.run!(profile, params, another_param, one_more_param)
- #сюда можно же передать этот самый profile и params
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement