From: David Lutterkort <[email protected]>

This now depends on service objects and can therefore not be used from models
---
 server/lib/cimi/models/schema.rb | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/server/lib/cimi/models/schema.rb b/server/lib/cimi/models/schema.rb
index b6651a7..5a2049b 100644
--- a/server/lib/cimi/models/schema.rb
+++ b/server/lib/cimi/models/schema.rb
@@ -191,20 +191,6 @@ class CIMI::Model::Schema
       else
         @klass = Class.new(opts[:class]) do |m|
           scalar :href
-
-          def ref_id(ctx)
-            # FIXME: We should use ctx's routes to split
-            # out the :id
-            href.split('/').last
-          end
-
-          def find(ctx)
-            klass.find(ref_id(ctx), ctx)
-          end
-
-          def klass
-            self.class.superclass
-          end
         end
         CIMI::Model::const_set(refname, @klass)
       end
-- 
1.8.1.4

Reply via email to