activerecord-tableless icon indicating copy to clipboard operation
activerecord-tableless copied to clipboard

Fixes issue #17 - NoMethodError: undefined method `sanitize_limit' for #<Object:...>

Open t-anjan opened this issue 10 years ago • 1 comments

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

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 .

t-anjan avatar Nov 06 '14 13:11 t-anjan

@softace bump

pboling avatar Nov 08 '17 18:11 pboling