softace/activerecord-tableless — pull request #24 by t-anjan (2014-11-06 13:33:05+00:00)
Title: Fixes issue #17 - NoMethodError: undefined method `sanitize_limit' for #<Object:...>

When trying to access a table-less model through an association, it was throwing a 'NoMethodError: undefined method `sanitize_limit' for #".

Fixed the error by defining that method on the "connection" variable. Took the method from the ActiveRecord gem: /lib/active_record/connection_adapters/abstract/database_statements.rb .