Fix warnings

JRuby-specific: fix 'warning: (...) interpreted as grouped expression'
This commit is contained in:
Benjamin Fleischer
2015-08-21 02:23:37 -04:00
parent 9aad8b4d29
commit d315151e8a
16 changed files with 77 additions and 54 deletions

View File

@@ -18,7 +18,9 @@ module ActiveModel
private
ActiveModelSerializers.silence_warnings do
attr_reader :raw_fields, :root
end
def parsed_fields
if raw_fields.is_a?(Hash)
@@ -37,4 +39,4 @@ module ActiveModel
end
end
end
end