app/models/cas/media_file.rb in cas-cms-0.1.3 vs app/models/cas/media_file.rb in cas-cms-1.0.0.alpha1

- old
+ new

@@ -4,10 +4,10 @@ class UnknownPath < StandardError; end class UnknownFileService < StandardError; end belongs_to :attachable, polymorphic: true - belongs_to :author, class_name: "Cas::User" + belongs_to :author, class_name: "::Cas::User" before_validation :set_media_type before_save :set_image_as_unique_cover scope :cover, ->{ where(cover: true) }