Skip to content

Commit

Permalink
remove unnecessary reader
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 23, 2013
1 parent 0aa6872 commit e20dd73
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -20,7 +20,7 @@ class << self
self.valid_options = [:class_name, :foreign_key, :validate] self.valid_options = [:class_name, :foreign_key, :validate]
self.extensions = [] self.extensions = []


attr_reader :model, :name, :scope, :options, :reflection attr_reader :model, :name, :scope, :options


def self.build(*args, &block) def self.build(*args, &block)
new(*args, &block).build new(*args, &block).build
Expand Down Expand Up @@ -54,11 +54,11 @@ def build
validate_options validate_options
define_accessors define_accessors
configure_dependency if options[:dependent] 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| Association.extensions.each do |extension|
extension.build @model, @reflection extension.build @model, reflection
end end
@reflection reflection
end end


def macro def macro
Expand Down

0 comments on commit e20dd73

Please sign in to comment.