ORM adapter. If you have no factory adapter, you can use this adapter to use your orm as 'factory' - ie create objects
# File lib/pickle/adapter.rb, line 164 def self.factories model_classes.map{|k| new(k)} end
# File lib/pickle/adapter.rb, line 168 def initialize(klass) @klass, @name = klass, klass.name.underscore.gsub('/','_') end
# File lib/pickle/adapter.rb, line 172 def create(attrs = {}) Pickle::Adapter.create_model(@klass, attrs) end