提交 07d522b1 编写于 作者: A Aaron Patterson

get the name from the reflection

上级 32bacb1c
......@@ -10,7 +10,7 @@ def valid_options
def define_callbacks(model, reflection)
super
name = self.name
name = reflection.name
model.send(:include, Module.new {
class_eval <<-RUBY, __FILE__, __LINE__ + 1
def destroy_associations
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册