ernie/squeel — Issue #97: Active Record 3.0.3, protected method `sanitize_limit' called.
Author: boxofrad
Created: 2012-01-15 00:47:09+00:00
State: open

Hi, one of the apps I maintain runs on rails 3.0.3 and throws the following error when I use squeel.
I'm guessing `sanitize_limit` has been made public in later versions of rails by looking at the docs.
I'll update it to the latest 3.0.* tonight but you may wanna update your docs to specify a minimum version.

Thanks :)

```
protected method `sanitize_limit' called for #
```

```
squeel (0.9.3) lib/squeel/adapters/active_record/3.0/relation_extensions.rb:94:in `build_arel'
activerecord (3.0.3) lib/active_record/relation/query_methods.rb:150:in `arel'
activerecord (3.0.3) lib/active_record/relation.rb:64:in `to_a'
activerecord (3.0.3) lib/active_record/relation/finder_methods.rb:333:in `find_first'
activerecord (3.0.3) lib/active_record/relation/finder_methods.rb:122:in `first'
activerecord (3.0.3) lib/active_record/relation/finder_methods.rb:234:in `send'
activerecord (3.0.3) lib/active_record/relation/finder_methods.rb:234:in `find_by_attributes'
activerecord (3.0.3) lib/active_record/base.rb:987:in `send'
activerecord (3.0.3) lib/active_record/base.rb:987:in `method_missing'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.3) lib/abstract_controller/base.rb:151:in `process_action'
actionpack (3.0.3) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:18:in `process_action'

...... Lots more stack trace ......
```