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
I just installed the latest tanker gem and began following the instructions in the readme, but the conditions block doesn't seem to be recognized:
undefined method `conditions' for #<Tanker::ModelConfig:0x007fdd84551270>
My model looks like this:
class Region < ActiveRecord::Base
include Tanker
....
tankit 'my_index' do
conditions do
indexable?
end
indexes :name
end
def indexable?
self.name?
end
end
The text was updated successfully, but these errors were encountered:
Unfortunately not. Including a conditions block within the tankit block as in the README still throws the error above when trying to boot Rails. My workaround has been to just add the condition to the callback:
I just installed the latest tanker gem and began following the instructions in the readme, but the conditions block doesn't seem to be recognized:
My model looks like this:
The text was updated successfully, but these errors were encountered: