Module: Services::SltcRegistrationSaver

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

Instance Method Summary collapse

Instance Method Details

#save_registration(params) ⇒ Object



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

def save_registration(params)
  Services::SltcRegistration.new(params).tap do | registration |
    registration.save if registration.valid?
  end
end