Skip to content

Conversation

@t-anjan
Copy link

@t-anjan t-anjan commented Nov 6, 2014

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 .

…ough 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 .
@pboling
Copy link

pboling commented Nov 8, 2017

@softace bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants