edavis10/redmine — pull request #51 by mahkhaled (2012-11-05 09:48:21+00:00)
Title: fix comparison of Symbol with Arel::Table failed exception when update wiki contents

when I try to update a wiki content in redmine 2, it throws exception
ArgumentError (comparison of Symbol with Arel::Table failed):
lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb:438:in `next_version'
lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb:432:in `set_new_version'
app/controllers/wiki_controller.rb:152:in `update'

This should use maximum not calculate :max