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

- old
+ new

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