1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Create default join table name using a Symbol

Lets stick with a symbol in join table name, it was removed in
993e164365 and broke the build.
This commit is contained in:
Carlos Antonio da Silva 2012-07-19 09:05:53 -03:00
parent 24705014b8
commit 2897bf1fd7

View file

@ -8,7 +8,7 @@ module ActiveRecord
end
def join_table_name(table_1, table_2)
[table_1, table_2].sort.join("_")
[table_1, table_2].sort.join("_").to_sym
end
end
end