Ruby on Rails
Tuesday, February 18, 2014
On Tuesday, February 18, 2014 11:51:54 AM UTC+1, Frederick Cheung wrote:
--
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.
Thanks, I've updated the gist :-)
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/11273c1e-4559-4b91-ad28-d173f241daf7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment