mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #36058 from rails/revert-36038-fix-35602
Revert "Include Caching module for ActionController::API"
This commit is contained in:
commit
cc834db1d0
2 changed files with 0 additions and 14 deletions
|
@ -117,7 +117,6 @@ module ActionController
|
|||
ApiRendering,
|
||||
Renderers::All,
|
||||
ConditionalGet,
|
||||
Caching,
|
||||
BasicImplicitRender,
|
||||
StrongParameters,
|
||||
|
||||
|
|
|
@ -2216,19 +2216,6 @@ module ApplicationTests
|
|||
assert_equal :default, Rails.configuration.debug_exception_response_format
|
||||
end
|
||||
|
||||
test "action_controller.cache_store works for api_only app as well" do
|
||||
add_to_config <<-RUBY
|
||||
config.api_only = true
|
||||
config.action_controller.cache_store = :memory_store
|
||||
RUBY
|
||||
|
||||
app "development"
|
||||
|
||||
api_controller = Class.new(ActionController::API)
|
||||
|
||||
assert_equal(api_controller.cache_store.class, ActiveSupport::Cache::MemoryStore)
|
||||
end
|
||||
|
||||
test "controller force_ssl declaration can be used even if session_store is disabled" do
|
||||
make_basic_app do |application|
|
||||
application.config.session_store :disabled
|
||||
|
|
Loading…
Reference in a new issue