提交 e20dd73d 编写于 作者: A Aaron Patterson

remove unnecessary reader

上级 0aa6872d
......@@ -20,7 +20,7 @@ class << self
self.valid_options = [:class_name, :foreign_key, :validate]
self.extensions = []
attr_reader :model, :name, :scope, :options, :reflection
attr_reader :model, :name, :scope, :options
def self.build(*args, &block)
new(*args, &block).build
......@@ -54,11 +54,11 @@ def build
validate_options
define_accessors
configure_dependency if options[:dependent]
@reflection = model.create_reflection(macro, name, scope, options, model)
reflection = model.create_reflection(macro, name, scope, options, model)
Association.extensions.each do |extension|
extension.build @model, @reflection
extension.build @model, reflection
end
@reflection
reflection
end
def macro
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册