Module: BMC::DefaultValuesConcern

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/bmc/default_values_concern.rb

Instance Method Summary collapse

Instance Method Details

#assign_default(attribute, value) ⇒ Object



7
8
9
# File 'app/models/concerns/bmc/default_values_concern.rb', line 7

def assign_default(attribute, value)
  send(:"#{attribute}=", value) if send(attribute).nil?
end

#assign_default_valuesObject



4
5
# File 'app/models/concerns/bmc/default_values_concern.rb', line 4

def assign_default_values
end