mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
remove dynamic class creation where not needed (#1850)
* remove dynamic class creation where not needed
This commit is contained in:
committed by
Benjamin Fleischer
parent
3ad2457aaf
commit
aa4d89ab47
@@ -4,7 +4,7 @@ require_relative './app'
|
||||
# https://github.com/ruby-bench/ruby-bench-suite/blob/8ad567f7e43a044ae48c36833218423bb1e2bd9d/rails/benchmarks/actionpack_router.rb
|
||||
class ApiAssertion
|
||||
include Benchmark::ActiveModelSerializers::TestMethods
|
||||
BadRevisionError = Class.new(StandardError)
|
||||
class BadRevisionError < StandardError; end
|
||||
|
||||
def valid?
|
||||
caching = get_caching
|
||||
|
||||
Reference in New Issue
Block a user