From 2f3fe92f1bdd2ca88dfa2a7aa0253b79a0bf6194 Mon Sep 17 00:00:00 2001 From: Angelo capilleri Date: Wed, 4 Dec 2013 17:48:16 +0100 Subject: remove nil in NullType#ref. Return Nil is implicit in a method and this syntax is used in the others classes --- actionpack/lib/action_dispatch/http/mime_type.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index a398919ca7..2a8ff0a5d2 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -299,9 +299,7 @@ module Mime true end - def ref - nil - end + def ref; end def respond_to_missing?(method, include_private = false) method.to_s.ends_with? '?' -- cgit v1.2.3