lib/spontaneous/media/store.rb in spontaneous-0.2.0.beta9 vs lib/spontaneous/media/store.rb in spontaneous-0.2.0.beta10

- old
+ new

@@ -6,17 +6,17 @@ autoload :Local, "spontaneous/media/store/local" autoload :Cloud, "spontaneous/media/store/cloud" extend self - def create(config) + def create(name, config) case config[:provider] when "Local", "local" - Local.new(config[:local_root], config[:url], config[:accepts]) + Local.new(name, config[:local_root], config[:url], config[:accepts]) else bucket = config.delete(:bucket) accepts = config.delete(:accepts) - Cloud.new(config, bucket, accepts) + Cloud.new(name, config, bucket, accepts) end end end end