app/models/phcscriptcdn/script/extension.rb in phcscriptcdn-3.3.3 vs app/models/phcscriptcdn/script/extension.rb in phcscriptcdn-4.0.0
- old
+ new
@@ -1,8 +1,11 @@
module Phcscriptcdn
class Script::Extension < ApplicationRecord
- # URL Un-Nested
+ # Relationships
+
+ # URLs & Extensions (None Nested)
+ has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
end
end