diff options
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/commands/about.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/tasks/misc.rake | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/about.rb b/railties/lib/rails/commands/about.rb deleted file mode 100644 index d4c30bbeb2..0000000000 --- a/railties/lib/rails/commands/about.rb +++ /dev/null @@ -1,2 +0,0 @@ -require 'rails/info' -puts Rails::Info diff --git a/railties/lib/rails/tasks/misc.rake b/railties/lib/rails/tasks/misc.rake index 4696f02a98..48fce92215 100644 --- a/railties/lib/rails/tasks/misc.rake +++ b/railties/lib/rails/tasks/misc.rake @@ -13,6 +13,13 @@ task :secret do puts ActiveSupport::SecureRandom.hex(64) end +desc 'Explain the current environment' +task :about do + $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" + require 'rails/info' + puts Rails::Info +end + namespace :time do namespace :zones do desc 'Displays names of all time zones recognized by the Rails TimeZone class, grouped by offset. Results can be filtered with optional OFFSET parameter, e.g., OFFSET=-6' |