You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
Very useful! Unfortunately it broke right away due to widespread assumption about keys in the model. I skimmed the source and it seems to assume the primary key is :id. Exactly in the cases where I need search my model uses a natural key. The the thing is coming down with when attempting to call search on the class.
NoMethodError: undefined method lazy_load' for nil:NilClass from (eval):2:inmethod_missing'
from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/resource/state/persisted.rb:23:in lazy_load' from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/resource/state/persisted.rb:8:inget'
from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/resource.rb:254:in []' from /usr/lib/ruby/gems/1.8/gems/dm-is-searchable-1.0.2/lib/dm-is-searchable/is/searchable.rb:32:insearch'
from (irb):5:in collect' from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/collection.rb:511:ineach'
from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:413:in each' from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:413:ineach'
from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/collection.rb:508:in each' from /usr/lib/ruby/gems/1.8/gems/dm-is-searchable-1.0.2/lib/dm-is-searchable/is/searchable.rb:32:incollect'
from /usr/lib/ruby/gems/1.8/gems/dm-is-searchable-1.0.2/lib/dm-is-searchable/is/searchable.rb:32:in `search'
Any chance of a quick fix or am I on my own? Great stuff, please keep it up. :)
The text was updated successfully, but these errors were encountered:
Very useful! Unfortunately it broke right away due to widespread assumption about keys in the model. I skimmed the source and it seems to assume the primary key is :id. Exactly in the cases where I need search my model uses a natural key. The the thing is coming down with when attempting to call search on the class.
NoMethodError: undefined method
lazy_load' for nil:NilClass from (eval):2:in
method_missing'from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/resource/state/persisted.rb:23:in
lazy_load' from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/resource/state/persisted.rb:8:in
get'from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/resource.rb:254:in
[]' from /usr/lib/ruby/gems/1.8/gems/dm-is-searchable-1.0.2/lib/dm-is-searchable/is/searchable.rb:32:in
search'from (irb):5:in
collect' from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/collection.rb:511:in
each'from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:413:in
each' from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:413:in
each'from /usr/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/collection.rb:508:in
each' from /usr/lib/ruby/gems/1.8/gems/dm-is-searchable-1.0.2/lib/dm-is-searchable/is/searchable.rb:32:in
collect'from /usr/lib/ruby/gems/1.8/gems/dm-is-searchable-1.0.2/lib/dm-is-searchable/is/searchable.rb:32:in `search'
Any chance of a quick fix or am I on my own? Great stuff, please keep it up. :)
The text was updated successfully, but these errors were encountered: