swanandp/acts_as_list — pull request #119 by trauts2 (2014-05-04 19:04:01+00:00)
Title: quote_level uses wrong number of params for Rails 4.1

Rails 4.1, latest version of acts_as_list

Symptoms: any move_* methods throw the following:

```code
ArgumentError - wrong number of arguments (1 for 2):
/Users/stu/projects/br/acts_as_list/acts_as_list/lib/acts_as_list/active_record/acts/list.rb:375:in `shuffle_positions_on_intermediate_items'
/Users/stu/projects/br/acts_as_list/acts_as_list/lib/acts_as_list/active_record/acts/list.rb:426:in `update_positions'
```
Appears to have broken with this commit

https://github.com/swanandp/acts_as_list/commit/25ae69e2d83b9e68a11f90e3bc7568ad81888df8#diff-e8acc63b1e238f3255c900eed37254b8

quote_value takes 2 arguments, not one.

Rails 4.1 source:

```ruby
module ActiveRecord
module Sanitization
extend ActiveSupport::Concern

module ClassMethods
def quote_value(value, column) #:nodoc:
connection.quote(value, column)
end
```
Not sure what you guys want to pass as the second parameter, but in the pull request I pass it as null and my use cases work. I’m not suggesting that this is the actual fix because I don’t understand the mechanics well enough, but hopefully this will identify the issue and at least share my workaround.