Module: Services::FacilityMappingCreator

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

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object



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

def create(params)
  facility_mappings.new(params).tap do | facility_mapping |
    facility_mapping.save if facility_mapping.valid?
  end
end