We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this isn't a bug, more a usage question - but I can't find any google group for this...
is there a way to include the Rails environment into Thor tasks, classes, etc similar to the rake method (in title)
The text was updated successfully, but these errors were encountered:
You just need to call it as first in your method:
class App def foo environment # do something end end
Sorry, something went wrong.
no such luck for me
lib/tasks/ocm_import.thor:4:in parts': undefined local variable or methodenvironment' for #Thor::Sandbox::OcmImport:0x10189c9c8 (NameError)
parts': undefined local variable or method
No branches or pull requests
this isn't a bug, more a usage question - but I can't find any google group for this...
is there a way to include the Rails environment into Thor tasks, classes, etc similar to the rake method (in title)
The text was updated successfully, but these errors were encountered: