README.md in consul-0.12.1 vs README.md in consul-0.12.2
- old
+ new
@@ -406,11 +406,11 @@
class NotesController < ApplicationController
power :notes
end
```
-You can use `:except` and `:only` options like in before filters.
+You can use `:except` and `:only` options like in before\_actions.
You can also map different powers to different actions:
```rb
class NotesController < ApplicationController
@@ -464,10 +464,10 @@
It is often convenient to map a power scope to a private controller method:
```rb
class NotesController < ApplicationController
- power :notes, :as => note_scope
+ power :notes, :as => :note_scope
def show
@note = note_scope.find(params[:id])
end