app/models/phcmemberspro/directory/category.rb in phcmemberspro-14.0.3 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-14.5.0
- old
+ new
@@ -1,12 +1,12 @@
module Phcmemberspro
- class Directory::Category < ApplicationRecord
-
- # Add Paper Trail
- has_paper_trail
-
- # Model Relationships
- has_many :categorylistings, class_name: 'Phcmemberspro::Directory::Categorylisting', dependent: :destroy
- has_many :listings, class_name: 'Phcmemberspro::Member::Listing', :through => :categorylistings
-
- end
+ class Directory::Category < ApplicationRecord
+
+ # Add Paper Trail
+ has_paper_trail
+
+ # Model Relationships
+ has_many :categorylistings, class_name: 'Phcmemberspro::Directory::Categorylisting', dependent: :destroy
+ has_many :listings, class_name: 'Phcmemberspro::Member::Listing', :through => :categorylistings
+
+ end
end