app/models/storytime/post.rb in storytime-1.1.1 vs app/models/storytime/post.rb in storytime-1.2.0
- old
+ new
@@ -4,10 +4,10 @@
include ActionView::Helpers::SanitizeHelper
extend FriendlyId
friendly_id :slug_candidates, use: [:history]
- belongs_to :user, class_name: Storytime.user_class.to_s
+ belongs_to :user, class_name: Storytime.user_class
belongs_to :featured_media, class_name: "Media"
belongs_to :secondary_media, class_name: "Media"
has_many :taggings, dependent: :destroy
has_many :tags, through: :taggings
\ No newline at end of file