提交 786a0195 编写于 作者: S Santiago Pastorino

Merge pull request #4741 from pacoguzman/initialize_variable_not_needed

Remove initialize variable columnn, not needed
......@@ -57,8 +57,7 @@ def find_finder_class_for(record) #:nodoc:
def build_relation(klass, table, attribute, value) #:nodoc:
reflection = klass.reflect_on_association(attribute)
column = nil
if(reflection)
if reflection
column = klass.columns_hash[reflection.foreign_key]
attribute = reflection.foreign_key
value = value.attributes[reflection.primary_key_column.name]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册