lib/blueprints/file_context.rb in blueprints-0.5.1 vs lib/blueprints/file_context.rb in blueprints-0.6.0
- old
+ new
@@ -12,8 +12,15 @@
namespace = Namespace.new(name)
Namespace.root = namespace
yield
old_namespace.add_child(namespace)
Namespace.root = old_namespace
+ namespace
+ end
+
+ # Creates dependency for current blueprint on some other blueprint and marks that instance variable with same name
+ # should be used for value of column. Only works on "Class.blueprint :name" type of blueprints
+ def self.d(name)
+ Buildable::Dependency.new(name)
end
end
end