lib/bulldog/reflection.rb in bulldog-0.0.1 vs lib/bulldog/reflection.rb in bulldog-0.0.2

- old
+ new

@@ -149,18 +149,16 @@ :attachment_types => types, :styles => options[:styles], :callback => callback) end - def process_once(*types, &callback) - options = types.extract_options! + def process_once(options={}, &callback) options[:with] and raise ArgumentError, "cannot specify a processor (:with option) with #process_once" options[:styles] and raise ArgumentError, "no :styles available for #process_once" options[:with] = :one_shot - types << options - process(*types, &callback) + process(options, &callback) end def store_attributes(*args) stored_attributes = args.extract_options!.symbolize_keys args.each do |attribute|