Skip to content

Commit c46b0a9

Browse files
committed
Version bump
1 parent e33f98a commit c46b0a9

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.1.0 - 14 May 2015
2+
3+
Added `:only` (as well as `:to`) for specifying actions in `allow`/`deny`
4+
blocks.
5+
16
## 2.0.0 - 14 May 2015
27

38
Thanks to @pjungwir:

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
acl9 (2.0.0)
4+
acl9 (2.1.0)
55
rails (~> 4.0)
66

77
GEM

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ class Admin::SchoolsController < ApplicationController
4242
access_control do
4343
allow :support, :of => School
4444
allow :admins, :managers, :teachers, :of => :school
45-
deny :teachers, :to => :destroy
45+
deny :teachers, :only => :destroy
4646

4747
action :index do
4848
allow anonymous, logged_in
4949
end
5050

51-
allow logged_in, :to => :show
51+
allow logged_in, :only => :show
5252
deny :students
5353
end
5454

lib/acl9/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Acl9
2-
VERSION = "2.0.0"
2+
VERSION = "2.1.0"
33
end

0 commit comments

Comments
 (0)