Skip to content
Browse files

Remove explicit return.

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
1 parent c91a13f commit a3bd62e1bae64569d0c2d45f8068f291e3e0e776 @miloops miloops committed with spastorino Nov 25, 2010
View
4 activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
@@ -67,7 +67,7 @@ def insert_record(record, force = true, validate = true)
relation.insert(attributes)
end
- return true
+ true
end
def delete_records(records)
@@ -80,7 +80,7 @@ def delete_records(records)
).delete
end
end
-
+
def construct_joins
"INNER JOIN #{@owner.connection.quote_table_name @reflection.options[:join_table]} ON #{@reflection.quoted_table_name}.#{@reflection.klass.primary_key} = #{@owner.connection.quote_table_name @reflection.options[:join_table]}.#{@reflection.association_foreign_key}"
end

0 comments on commit a3bd62e

Please sign in to comment.
Something went wrong with that request. Please try again.