parsley/app/models/recipe_ingredient.rb
Dan Elbert 3b4134f684 units
2016-01-14 15:22:15 -06:00

10 lines
232 B
Ruby

class RecipeIngredient < ActiveRecord::Base
belongs_to :ingredient
belongs_to :recipe, inverse_of: :recipe_ingredients
validates :sort_order, presence: true
validates :custom_density, density: true, allow_blank: true
end