Sha256: 9e80c77f586228b63c3eb5978f1435af8fb9d00c34348b41dad26f99602e90e6
Contents?: true
Size: 839 Bytes
Versions: 4
Compression:
Stored size: 839 Bytes
Contents
module JSONAPI class ResourceControllerMetal < ActionController::Metal MODULES = [ AbstractController::Rendering, ActionController::Rendering, ActionController::Renderers::All, ActionController::StrongParameters, Gem::Requirement.new('< 6.1').satisfied_by?(ActionPack.gem_version) ? ActionController::ForceSSL : nil, ActionController::Instrumentation, JSONAPI::ActsAsResourceController ].compact.freeze # Note, the url_helpers are not loaded. This will prevent links from being generated for resources, and warnings # will be emitted. Link support can be added by including `Rails.application.routes.url_helpers`, and links # can be disabled, and warning suppressed, for a resource with `exclude_links :default` MODULES.each do |mod| include mod end end end
Version data entries
4 entries across 4 versions & 1 rubygems