README.md in tram-policy-1.0.0 vs README.md in tram-policy-1.0.1
- old
+ new
@@ -5,11 +5,10 @@
<a href="https://evilmartians.com/">
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
[![Gem Version][gem-badger]][gem]
[![Build Status][travis-badger]][travis]
-[![Dependency Status][gemnasium-badger]][gemnasium]
[![Inline docs][inch-badger]][inch]
## Intro
Policy objects are responsible for context-related validation of objects, or mixes of objects. Here **context-related** means a validation doesn't check whether an object is valid by itself, but whether it is valid for some purpose (context). For example, we could ask if some article is ready (valid) to be published, etc.
@@ -126,11 +125,11 @@
You can change the root scope if you will (this could be useful in libraries):
```ruby
class MyGemPolicy < Tram::Policy
- scope "mygem", "policies" # inherited by subclasses
+ root_scope "mygem", "policies" # inherited by subclasses
end
class Article::ReadinessPolicy < MyGemPolicy
# ...
end
@@ -336,11 +335,9 @@
[codeclimate-badger]: https://img.shields.io/codeclimate/github/tram-rb/tram-policy.svg?style=flat
[codeclimate]: https://codeclimate.com/github/tram-rb/tram-policy
[gem-badger]: https://img.shields.io/gem/v/tram-policy.svg?style=flat
[gem]: https://rubygems.org/gems/tram-policy
-[gemnasium-badger]: https://img.shields.io/gemnasium/tram-rb/tram-policy.svg?style=flat
-[gemnasium]: https://gemnasium.com/tram-rb/tram-policy
[inch-badger]: http://inch-ci.org/github/tram-rb/tram-policy.svg
[inch]: https://inch-ci.org/github/tram-rb/tram-policy
[travis-badger]: https://img.shields.io/travis/tram-rb/tram-policy/master.svg?style=flat
[travis]: https://travis-ci.org/tram-rb/tram-policy
[active-model-validation]: http://api.rubyonrails.org/classes/ActiveModel/Validations.html