From bc76ecf6550375176e46f3ea296607744d12bbfe Mon Sep 17 00:00:00 2001 From: Ryunosuke Sato Date: Sun, 19 Mar 2017 23:28:57 +0900 Subject: Fix the example code for `Rails.groups` [ci skip] `Rails.groups` contains `Rails.env` that is inspected as String. --- railties/lib/rails.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties') diff --git a/railties/lib/rails.rb b/railties/lib/rails.rb index 00add5829d..6d8bf28943 100644 --- a/railties/lib/rails.rb +++ b/railties/lib/rails.rb @@ -87,8 +87,8 @@ module Rails # groups assets: [:development, :test] # # # Returns - # # => [:default, :development, :assets] for Rails.env == "development" - # # => [:default, :production] for Rails.env == "production" + # # => [:default, "development", :assets] for Rails.env == "development" + # # => [:default, "production"] for Rails.env == "production" def groups(*groups) hash = groups.extract_options! env = Rails.env -- cgit v1.2.3