Merge pull request #62 from highgroove/cleanup_scope_instance_variables

Remove left over references to scope instance variable
This commit is contained in:
Yehuda Katz 2012-06-05 00:32:23 -07:00
commit 6e2554d741
2 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ module ActiveModel
# end # end
# #
# def author? # def author?
# post.author == scope # post.author == options[:scope]
# end # end
# end # end
# #

View File

@ -71,8 +71,8 @@ class SerializerTest < ActiveModel::TestCase
end end
class CommentSerializer class CommentSerializer
def initialize(comment, scope, options={}) def initialize(comment, options={})
@comment, @scope = comment, scope @comment = comment
end end
def serializable_hash def serializable_hash