I'm seeing an issue on Heroku only with the ancestry gem (cannot reproduce locally): https://github.com/stefankroes/ancestry
A NoMethodError occurred in home#upload: undefined method `ancestry' for #
Method looks like this:
def anthem_upload
user = User.find_by(id: params[:user_id])
anthem = Anthem.create!(user_id: user.id, body:params[:post]) <-- HAPPENS HERE
...
ene
This method doesn't even call on .ancestry method - but the exception happens as soon as model is created.
Model looks like this:
class Anthem < ActiveRecord::Base
has_ancestry
...
end
Here is the logs:
A NoMethodError occurred in home#anthem_upload: undefined method `ancestry' for #<Anthem:0x007f1684d58b98> app/controllers/home_controller.rb:335:in `anthem_upload'