Skip to content

Commit

Permalink
issue #112 - added space to unitized amount, still needs check to det…
Browse files Browse the repository at this point in the history
…ermine if unit is valid before using.
  • Loading branch information
johnhutch committed Jun 7, 2017
1 parent 080e562 commit 773372f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ingredient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def unitless?
end

def unitized_amount
Unit.new(self.amount + (self.unit || "") )
Unit.new(self.amount + (self.unit ? " " + self.unit : "") )
end

def ingreedy_parse(ing_string)
Expand Down

0 comments on commit 773372f

Please sign in to comment.