Skip to content

Commit

Permalink
ActiveModel::Serializer::Null does not need testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Jan 7, 2017
1 parent 22a7cf7 commit ffcc3e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/active_model/serializer/null.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module ActiveModel
class Serializer
class Null < Serializer
# :nocov:
def attributes(*)
{}
end
Expand All @@ -12,6 +13,7 @@ def associations(*)
def serializable_hash(*)
{}
end
# :nocov:
end
end
end

0 comments on commit ffcc3e4

Please sign in to comment.