1
0

Toggling quantity primariness from nutrients view

This commit is contained in:
cryptogopher
2019-11-01 21:43:56 +01:00
parent 09c441f662
commit cf9c913897
12 changed files with 174 additions and 102 deletions

View File

@@ -19,4 +19,8 @@ class Quantity < ActiveRecord::Base
self.primary = false if self.primary.nil?
end
end
def toggle_primary!
self.toggle!(:primary)
end
end