mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Merge pull request #62 from highgroove/cleanup_scope_instance_variables
Remove left over references to scope instance variable
This commit is contained in:
commit
6e2554d741
@ -99,7 +99,7 @@ module ActiveModel
|
||||
# end
|
||||
#
|
||||
# def author?
|
||||
# post.author == scope
|
||||
# post.author == options[:scope]
|
||||
# end
|
||||
# end
|
||||
#
|
||||
|
||||
@ -71,8 +71,8 @@ class SerializerTest < ActiveModel::TestCase
|
||||
end
|
||||
|
||||
class CommentSerializer
|
||||
def initialize(comment, scope, options={})
|
||||
@comment, @scope = comment, scope
|
||||
def initialize(comment, options={})
|
||||
@comment = comment
|
||||
end
|
||||
|
||||
def serializable_hash
|
||||
|
||||
Loading…
Reference in New Issue
Block a user