[feed manager] Gut the feed manager
This commit is contained in:
@@ -42,7 +42,7 @@ class EmptyController < ActionController::Base
|
||||
links << [prev_path, [%w(rel prev)]] if prev_path
|
||||
response.headers['Link'] = LinkHeader.new(links) unless links.empty?
|
||||
end
|
||||
|
||||
|
||||
def current_user
|
||||
nil
|
||||
end
|
||||
@@ -55,6 +55,10 @@ class EmptyController < ActionController::Base
|
||||
nil
|
||||
end
|
||||
|
||||
def gone
|
||||
respond_with_error(410)
|
||||
end
|
||||
|
||||
def cache_collection(raw, klass)
|
||||
return raw unless klass.respond_to?(:with_includes)
|
||||
|
||||
@@ -83,6 +87,6 @@ class EmptyController < ActionController::Base
|
||||
def truthy_param?(key)
|
||||
ActiveModel::Type::Boolean.new.cast(params[key])
|
||||
end
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user