diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-04-06 13:20:50 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-04-06 13:20:50 +0530 |
commit | 74d09060a3396a9ed11dbf7f776be663326375d1 (patch) | |
tree | 0deac37d2da1641283706db2f86445fefefd6123 /railties/lib/rails | |
parent | ea3a1901371526ea67fd6736023857212bf6756c (diff) | |
download | rails-74d09060a3396a9ed11dbf7f776be663326375d1.tar.gz rails-74d09060a3396a9ed11dbf7f776be663326375d1.tar.bz2 rails-74d09060a3396a9ed11dbf7f776be663326375d1.zip |
remove unused variables
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 93504b3b35..86f62dfb40 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -553,7 +553,7 @@ module Rails # # This needs to be an initializer, since it needs to run once # per engine and get the engine as a block parameter - initializer :set_autoload_paths, before: :bootstrap_hook do |app| + initializer :set_autoload_paths, before: :bootstrap_hook do ActiveSupport::Dependencies.autoload_paths.unshift(*_all_autoload_paths) ActiveSupport::Dependencies.autoload_once_paths.unshift(*_all_autoload_once_paths) diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index 9a3094b1b7..877dd6d254 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -82,7 +82,6 @@ namespace :test do # Display deprecation message task :deprecated do - task_name = ARGV.first ActiveSupport::Deprecation.warn "`rake #{ARGV.first}` is deprecated with no replacement." end |