- class Story < Ohm::Model
- include Celluloid
- attribute :url
- index :url
- @pool = Celluloid::Pool.new(Story, {initial_size:10,max_size:100})
- class << self; attr_accessor :pool end
- def self.new
- @pool.get
- end
- # something like this to control things
- def after_save
- self.terminate
- @pool.put(self)
- end
- end