mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Rails5 requires x_action filters
This commit is contained in:
parent
9c226c67f1
commit
322c8aa59c
@ -14,7 +14,7 @@ class DefaultScopeNameTest < ActionController::TestCase
|
|||||||
class UserTestController < ActionController::Base
|
class UserTestController < ActionController::Base
|
||||||
protect_from_forgery
|
protect_from_forgery
|
||||||
|
|
||||||
before_filter { request.format = :json }
|
before_action { request.format = :json }
|
||||||
|
|
||||||
def current_user
|
def current_user
|
||||||
TestUser.new('Pete', false)
|
TestUser.new('Pete', false)
|
||||||
@ -47,7 +47,7 @@ class SerializationScopeNameTest < ActionController::TestCase
|
|||||||
protect_from_forgery
|
protect_from_forgery
|
||||||
|
|
||||||
serialization_scope :current_admin
|
serialization_scope :current_admin
|
||||||
before_filter { request.format = :json }
|
before_action { request.format = :json }
|
||||||
|
|
||||||
def current_admin
|
def current_admin
|
||||||
TestUser.new('Bob', true)
|
TestUser.new('Bob', true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user