提交 fd250852 编写于 作者: J Jorge Bejar 提交者: Santiago Pastorino

Remove Compatibility module since we don't remember why it was added 😄

上级 e3808878
......@@ -16,7 +16,6 @@ module ActionController
autoload :FormBuilder
autoload_under "metal" do
autoload :Compatibility
autoload :ConditionalGet
autoload :Cookies
autoload :DataStreaming
......
......@@ -85,25 +85,6 @@ module ActionController
class API < Metal
abstract!
module Compatibility
def cache_store; end
def cache_store=(*); end
def assets_dir=(*); end
def javascripts_dir=(*); end
def stylesheets_dir=(*); end
def page_cache_directory=(*); end
def asset_path=(*); end
def asset_host=(*); end
def relative_url_root=(*); end
def perform_caching=(*); end
def helpers_path=(*); end
def allow_forgery_protection=(*); end
def helper_method(*); end
def helper(*); end
end
extend Compatibility
# Shortcut helper that returns all the ActionController::API modules except the ones passed in the argument:
#
# class MetalController
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册