codemancers / rapidfire

Making dynamic surveys should be easy!
https://rapidfire.fly.dev/
MIT License
319 stars 141 forks source link

undefined local variable or method `rapidfire' for #<Rapidfire::QuestionsController:0x0....> #109

Open codeodor opened 7 years ago

codeodor commented 7 years ago

After creating a question (using the master branch), I get this error.

I worked around it by creating an initializer that does this:


Rails.application.config.after_initialize do
  Rapidfire::ApplicationController.class_eval do
    def rapidfire
      self
    end
  end
end
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 14 days. Thank you for your contributions.