lib/meducation_sdk/resources/board.rb in meducation_sdk-1.4.3 vs lib/meducation_sdk/resources/board.rb in meducation_sdk-1.4.4
- old
+ new
@@ -1,10 +1,10 @@
module MeducationSDK
- class Board < Loquor::Resource
+ class Board < Resource
self.path = "/boards"
def owner
- @owner ||= "MeducationSDK::#{owner_type.gsub("::", "")}".constantize.find(owner_id)
+ @owner ||= class_for(owner_type).find(owner_id)
end
def created_by
@created_by ||= User.find(created_by_id)
end