Skip to content

Commit

Permalink
Removing maintainee class reference as it appears to cause serializat…
Browse files Browse the repository at this point in the history
…ion explody
  • Loading branch information
Flip Sasser committed Jul 13, 2011
1 parent 31d6cc9 commit 306a373
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/maintain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def #{attribute}=(value)
end
def #{attribute}
@#{attribute}_maintainer ||= self.class.maintainers[:#{attribute}].value(self)
@#{attribute} ||= self.class.maintainers[:#{attribute}].value(self)
end
EOC

Expand Down
2 changes: 1 addition & 1 deletion lib/maintain/maintainer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def hooks
end

def maintainee
@_maintainee ||= @maintainee.split('::').inject(Object) {|mod, const| mod.const_get(const) }
@maintainee.split('::').inject(Object) {|mod, const| mod.const_get(const) }
end

def method_free?(method_name, class_method = false)
Expand Down

0 comments on commit 306a373

Please sign in to comment.