spec/no_db/fixtures/fruit.rb in blueprints-0.7.3 vs spec/no_db/fixtures/fruit.rb in blueprints-0.8.0

- old
+ new

@@ -1,8 +1,15 @@ class Fruit attr_accessor :species, :size + include Blueprints::Blueprintable def initialize(species, size = 5) @species = species @size = size + end + + private + + def self.blueprint_object(attrs) + new(attrs[:species], attrs[:size]) end end