Ruby on Rails Tuesday, February 18, 2014



On Tuesday, February 18, 2014 10:35:26 AM UTC, maurizio de magnis wrote:
Good morning everybody,

is it expected for the Rails.logger to be left uninitialized before executing a rake task?
These are the steps to reproduce my test: https://gist.github.com/olistik/9068351


With a task like that, the rails environment is not loaded, so I wouldn't expect much in the way of rails to be setup. If you set your task to depend on the :environment task then  Rails should be setup for you.

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e14e3e4d-294c-4ba6-896b-e0ed630397e3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment