Permalink
Browse files

Remove explicit return and avoid creating local var.

  • Loading branch information...
1 parent 1b531b7 commit 63c9185b62076f416c63b472a356bf9faac143db @miloops miloops committed with tenderlove Nov 20, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/associations/has_many_association.rb
@@ -112,8 +112,7 @@ def construct_create_scope
end
def we_can_set_the_inverse_on_this?(record)
- inverse = @reflection.inverse_of
- return !inverse.nil?
+ !@reflection.inverse_of.nil?
end
end
end

0 comments on commit 63c9185

Please sign in to comment.