Skip to content

Commit

Permalink
Per Dr. Eileen's orders :)
Browse files Browse the repository at this point in the history
Prescribed some review fixes for myself!
  • Loading branch information
kaspth committed Sep 25, 2016
1 parent 993c069 commit 4e106ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions railties/lib/rails/command.rb
@@ -1,4 +1,5 @@
require "active_support"
require "active_support/dependencies/autoload"
require "active_support/core_ext/enumerable"
require "active_support/core_ext/object/blank"
require "active_support/core_ext/hash/transform_values"
Expand All @@ -7,8 +8,10 @@

module Rails
module Command
autoload :Behavior, "rails/command/behavior"
autoload :Base, "rails/command/base"
extend ActiveSupport::Autoload

autoload :Behavior
autoload :Base

include Behavior

Expand All @@ -17,7 +20,7 @@ def hidden_commands # :nodoc:
@hidden_commands ||= []
end

def environment
def environment # :nodoc:
ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
end

Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/command/environment_argument.rb
Expand Up @@ -20,7 +20,7 @@ def acceptable_environment(env = nil)
if available_environments.include? env
env
else
%w(production development test).detect { |e| e =~ /^#{env}/ } || env
%w( production development test ).detect { |e| e =~ /^#{env}/ } || env
end
end

Expand Down
1 change: 0 additions & 1 deletion railties/lib/rails/commands/server/server_command.rb
Expand Up @@ -100,7 +100,6 @@ def default_options
end

private

def setup_dev_caching
if options[:environment] == "development"
Rails::DevCaching.enable_by_argument(options[:caching])
Expand Down

0 comments on commit 4e106ee

Please sign in to comment.