Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3186 from arunagw/void_context_warnings_removed_3…

…-1-stable

Void context warnings removed 3 1 stable
  • Loading branch information...
commit 581173dcb86be0f96d4784476886a426fcafa874 2 parents aead572 + 32df5b6
@josevalim josevalim authored
View
2  actionpack/lib/sprockets/assets.rake
@@ -17,7 +17,7 @@ namespace :assets do
end
# Ensure that action view is loaded and the appropriate sprockets hooks get executed
- ActionView::Base
+ _ = ActionView::Base
config = Rails.application.config
config.assets.compile = true
View
8 railties/test/application/configuration_test.rb
@@ -306,7 +306,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailInterceptor], ::Mail.send(:class_variable_get, "@@delivery_interceptors")
end
@@ -319,7 +319,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailInterceptor, ::MyOtherMailInterceptor], ::Mail.send(:class_variable_get, "@@delivery_interceptors")
end
@@ -332,7 +332,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailObserver], ::Mail.send(:class_variable_get, "@@delivery_notification_observers")
end
@@ -345,7 +345,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailObserver, ::MyOtherMailObserver], ::Mail.send(:class_variable_get, "@@delivery_notification_observers")
end
Please sign in to comment.
Something went wrong with that request. Please try again.