lib/blueprints/helper.rb in blueprints-0.6.2 vs lib/blueprints/helper.rb in blueprints-0.6.3

- old
+ new

@@ -18,9 +18,14 @@ # Same as #build_blueprint except that you can use it to build same blueprint several times. def build_blueprint!(*names) Namespace.root.build(names, self, false) end + # Returns attributes that are used to build blueprint. To set what attributes are used you need to call attributes + # method when defining blueprint like this: + # blueprint :apple do + # Fruit.build attributes + # end.attributes(:name => 'apple') def build_attributes(name) Namespace.root[name].attributes end alias :build :build_blueprint