lib/meducation_sdk/resources/comment.rb in meducation_sdk-1.4.3 vs lib/meducation_sdk/resources/comment.rb in meducation_sdk-1.4.4

- old
+ new

@@ -1,10 +1,10 @@ module MeducationSDK - class Comment < Loquor::Resource + class Comment < Resource self.path = "/comments" def item - @item ||= "MeducationSDK::#{item_type.gsub("::", "")}".constantize.find(item_id) + @item ||= class_for(item_type).find(item_id) end def user @user ||= User.find(user_id) end