rails/rails — pull request #4948 by andredurao (2012-02-08 19:27:41+00:00)
Title: 3 2 stable

Adding RAILS_COMMAND constant on initialization process, so with that a gem can access which rails command is being executed:

On rails initializer hook you can't know which rails command is running. with that I can use is on a hook like this:

config.after_initialize do
puts RAILS_COMMAND
end