diff options
| author | mo khan <mo@mokhan.ca> | 2016-07-04 14:52:06 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-07-04 14:59:24 -0600 |
| commit | 2eebbd33137c7e45c81bc36b9c4fc0ee0578032a (patch) | |
| tree | 1ae0fb7b14673883be3b129fd3f794028c5e7958 /app/models/program.rb | |
| parent | 2bb11c60de4ec1feebad704b285c0c0fe9d6584f (diff) | |
hound happy.
Diffstat (limited to 'app/models/program.rb')
| -rw-r--r-- | app/models/program.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/program.rb b/app/models/program.rb index 904e3bb..441f0ad 100644 --- a/app/models/program.rb +++ b/app/models/program.rb @@ -1,7 +1,7 @@ class Program < ApplicationRecord STRONG_LIFTS = "StrongLifts 5×5" has_many :exercises, through: :routines - has_many :routines + has_many :routines, inverse_of: :program has_many :recommendations, through: :routines before_save do |
