laserlemon/vestal_versions — Issue #80: Fix for working with ActiveRecord 3.2.0
Author: adederer
Created: 2012-01-22 20:22:57+00:00
State: open

vestal_versions not work out of box with ActiveRecord 3.2.0 (Rails 3.2.0).
I've make following changes and all work well:
lib/vestal_versions/versions.rb
:order => "#{table_name}.#{connection.quote_column_name('number')} #{(from_number > to_number) ? 'DESC' : 'ASC'}"

--- replaced aliased_table_name to table_name

lib/vestal_versions/options.rb
class_attribute :vestal_versions_options
--- replaced class_inheritable_accessor to class_attribute

Could you please check it more carefully fix it in a trunk?

Thanks a lot!

---
Alexander Dederer