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