diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-11-25 16:12:57 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-25 17:35:24 -0200 |
commit | a3bd62e1bae64569d0c2d45f8068f291e3e0e776 (patch) | |
tree | 6147790857cc07ab06206dae43ba3daaa46fc0b3 /activerecord | |
parent | c91a13f8f557cc1d21fccb5f964d50438cd60a52 (diff) | |
download | rails-a3bd62e1bae64569d0c2d45f8068f291e3e0e776.tar.gz rails-a3bd62e1bae64569d0c2d45f8068f291e3e0e776.tar.bz2 rails-a3bd62e1bae64569d0c2d45f8068f291e3e0e776.zip |
Remove explicit return.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb index da742fa668..2c72fd0004 100644 --- a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +++ b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb @@ -67,7 +67,7 @@ module ActiveRecord relation.insert(attributes) end - return true + true end def delete_records(records) @@ -80,7 +80,7 @@ module ActiveRecord ).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 |