Module: Services::ServiceCreator

Defined in:
app/roles/services/service_creator.rb

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object



5
6
7
8
9
# File 'app/roles/services/service_creator.rb', line 5

def create(params)
  Service.new(params).tap do | svc |
    svc.save if svc.valid?
  end
end