Method: Hash#merge_unless

Defined in:
lib/mumuki/classroom/models/concerns/extensions.rb

#merge_unless(criterion, hash) ⇒ Object



43
44
45
46
# File 'lib/mumuki/classroom/models/concerns/extensions.rb', line 43

def merge_unless(criterion, hash)
  return merge hash unless criterion
  self
end