Sha256: 4485c0b55799b0e0e405dadacb7b22bba563f795dc06190510c9a3ca4522fafd
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true module Apress module Api module ApiController module Responds extend ActiveSupport::Concern included do if (Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR == 2) || Rails::VERSION::MAJOR > 4 before_action :set_json_format else before_filter :set_json_format end end private # :nocov: def set_json_format request.format = :json end # :nocov: end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apress-api-1.24.2 | lib/apress/api/api_controller/responds.rb |