{"push_id":685519020,"size":1,"distinct_size":1,"ref":"refs/heads/scoping","head":"0ea0dc4826ffa1a49ad827e5dfc6ed6ab9185e9d","before":"df28561e4b84e879d1361340d5f888feafbe4348","commits":[{"sha":"0ea0dc4826ffa1a49ad827e5dfc6ed6ab9185e9d","author":{"email":"a330ebdd4d79f68e8af72bd94bb200c5f5dc9722@gmail.com","name":"Edgars Beigarts"},"message":"Use sublcass context when calling a scope defined in a superclass\n\nExample:\n\n```ruby\nclass Shape\n  scope :visible, -> { large }\n  scope :large, -> { all }\nend\n\nclass Circle < Shape\n  scope :large, -> { where(radius: 5) }\nend\n```\n\n`Circle.visible.selector` returns `{}`, instead of `{ \"radius\" => 5 }`.\n\nActiveRecord also uses `instance_exec` when calling scopes.\n\nThis should also fix #3599.","distinct":true,"url":"https://api.github.com/repos/ebeigarts/mongoid/commits/0ea0dc4826ffa1a49ad827e5dfc6ed6ab9185e9d"}]}