mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
Fixes bug in Test::Schema when using filter_parameters
This commit is contained in:
parent
6c6e45b23f
commit
7b9d71e99b
@ -60,11 +60,11 @@ module ActiveModelSerializers
|
|||||||
attr_reader :document_store
|
attr_reader :document_store
|
||||||
|
|
||||||
def controller_path
|
def controller_path
|
||||||
request.filtered_parameters[:controller]
|
request.filtered_parameters.with_indifferent_access[:controller]
|
||||||
end
|
end
|
||||||
|
|
||||||
def action
|
def action
|
||||||
request.filtered_parameters[:action]
|
request.filtered_parameters.with_indifferent_access[:action]
|
||||||
end
|
end
|
||||||
|
|
||||||
def schema_directory
|
def schema_directory
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
|
Rails.application.config.filter_parameters += [:password]
|
||||||
|
|
||||||
module ActiveModelSerializers
|
module ActiveModelSerializers
|
||||||
module Test
|
module Test
|
||||||
class SchemaTest < ActionController::TestCase
|
class SchemaTest < ActionController::TestCase
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user