Module: Services::ConfiguredFacilityCreator

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

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object



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

def create(params)
  configured_facilities.new(params).tap do | configured_facility |
    configured_facility.save if configured_facility.valid?
  end
end