app/models/cubism/base.rb~ in cubism-0.1.0.pre1 vs app/models/cubism/base.rb~ in cubism-0.1.0.pre2
- old
+ new
@@ -1,3 +1,13 @@
class Cubism::Base
- include Cubism::Presence
+ include ActiveModel::Model
+ include Cubism::Presence
+ include GlobalID::Identifiable
+
+ def self.find(id)
+ new if id == "cubism-#{self.class.name.underscore}"
+ end
+
+ def id
+ "cubism-#{self.class.name.underscore}"
+ end
end