activerecord-tableless
activerecord-tableless copied to clipboard
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 #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 .
@softace bump