balvig/spyke — pull request #1 by kinopyo (2014-12-12 05:24:03+00:00)
Title: Fix issue that scopes with same name got overridden

seems like scope methods are defined in one place and shared across all classes, so with same scope name it'll be overridden.

```ruby
class Recipe < Spyke::Base
scope :published, -> { where(status: 'published') }
end

class Comment < Spyke::Base
end

Comment.respond_to?(:published)
# => true
Comment.published
# => #"/comments/:id"}, @params={:status=>"published"}>
```