softace / activerecord-tableless

Bringing together the different tableless model implementations into a single gem/plugin
Other
113 stars 41 forks source link

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

Open t-anjan opened 10 years ago

t-anjan commented 10 years ago

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 .

pboling commented 7 years ago

@softace bump