Skip to content

Commit

Permalink
Revert "Include Caching module for ActionController::API"
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Apr 22, 2019
1 parent 216ef01 commit b62b038
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion actionpack/lib/action_controller/api.rb
Expand Up @@ -117,7 +117,6 @@ def self.without_modules(*modules)
ApiRendering,
Renderers::All,
ConditionalGet,
Caching,
BasicImplicitRender,
StrongParameters,

Expand Down
13 changes: 0 additions & 13 deletions railties/test/application/configuration_test.rb
Expand Up @@ -2216,19 +2216,6 @@ class Post < ActiveRecord::Base
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
Expand Down

0 comments on commit b62b038

Please sign in to comment.