lib/ronin/database/migrations/migration.rb in ronin-1.0.0 vs lib/ronin/database/migrations/migration.rb in ronin-1.1.0.rc1
- old
+ new
@@ -48,18 +48,15 @@
# The DataMapper repository the migration will operate on.
#
# @option options [Array, Symbol] :needs ([])
# Other migrations that are dependencies of the migration.
#
- # @api semipublic
+ # @api private
#
def initialize(name,options={},&block)
- options = options.merge(
- :verbose => UI::Output.verbose?,
- :needs => []
- )
+ options[:verbose] = UI::Output.verbose?
- @needs = Set[*options[:needs]]
+ @needs = Array(options.delete(:needs)).uniq
super(0,name,options,&block)
end
end