mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fix warnings
JRuby-specific: fix 'warning: (...) interpreted as grouped expression'
This commit is contained in:
9
test/fixtures/poro.rb
vendored
9
test/fixtures/poro.rb
vendored
@@ -1,3 +1,5 @@
|
||||
verbose = $VERBOSE
|
||||
$VERBOSE = nil
|
||||
class Model
|
||||
FILE_DIGEST = Digest::MD5.hexdigest(File.open(__FILE__).read)
|
||||
|
||||
@@ -260,9 +262,4 @@ Spam::UnrelatedLinkSerializer = Class.new(ActiveModel::Serializer) do
|
||||
cache only: [:id]
|
||||
attributes :id
|
||||
end
|
||||
|
||||
RaiseErrorSerializer = Class.new(ActiveModel::Serializer) do
|
||||
def json_key
|
||||
raise StandardError, 'Intentional error for rescue_from test'
|
||||
end
|
||||
end
|
||||
$VERBOSE = verbose
|
||||
|
||||
Reference in New Issue
Block a user