restful_acl 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.textile CHANGED
@@ -13,14 +13,15 @@ RESTful_ACL requires the super amazing "RESTful_Authentication":https://github.c
13
13
  h3. How to Install
14
14
 
15
15
  Install the RESTful_ACL gem:
16
- <pre>sudo gem install mdarby-restful_acl -s http://gems.github.com</pre>
16
+ <pre>sudo gem install restful_acl -s http://gemcutter.org</pre>
17
17
 
18
18
  Add the gem to your environment.rb file as thus:
19
- <pre>config.gem "mdarby-restful_acl", :lib => 'restful_acl_controller'</pre>
19
+ <pre>config.gem "restful_acl"</pre>
20
20
 
21
21
  RESTful_ACL requires two named routes: "error" and "denied". Add the following to your routes.rb file:
22
- <pre> map.error 'error', :controller => 'some_controller', :action => 'error_action'
23
- map.denied 'denied', :controller => 'some_controller', :action => 'denied_action'
22
+ <pre>
23
+ map.error 'error', :controller => 'some_controller', :action => 'error_action'
24
+ map.denied 'denied', :controller => 'some_controller', :action => 'denied_action'
24
25
  </pre>
25
26
 
26
27
  h3. How to Use
@@ -73,7 +74,8 @@ RESTful_ACL 2.1+ supports singleton resources. Just pass @:singleton@ to the @lo
73
74
  h4. View Helpers
74
75
 
75
76
  There are five view helpers also included in RESTful_ACL: @#indexable@, @#creatable@, @#readable@, @#updatable@, and @#deletable@. These enable you to do nifty things like:
76
- <pre>= link_to ‘Foo Index’, foos_path if indexable
77
+ <pre>
78
+ = link_to ‘Foo Index’, foos_path if indexable
77
79
  = link_to 'Edit Foo', edit_foo_path(@foo) if updatable(@foo)
78
80
  = link_to 'Create Foo', new_foo_path if creatable
79
81
  = link_to 'View Foo', foo_path(@foo) if readable(@foo)
@@ -156,4 +158,4 @@ h3. About the Author
156
158
 
157
159
  My name is "Matt Darby.":http://blog.matt-darby.com I’m an IT Manager and pro-web-dev at for "Dynamix Engineering":http://dynamix-ltd.com and hold a Master’s Degree in Computer Science from "Franklin University":http://www.franklin.edu in sunny "Columbus, OH.":http://en.wikipedia.org/wiki/Columbus,_Ohio
158
160
 
159
- Feel free to check out my "blog":http://blog.matt-darby.com or "recommend me":http://www.workingwithrails.com/person/10908-matt-darby
161
+ Feel free to check out my "site":http://matt-darby.com or "recommend me":http://www.workingwithrails.com/person/10908-matt-darby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -0,0 +1,3 @@
1
+ require 'controller'
2
+ require 'helper'
3
+ require 'model'
data/rails/init.rb CHANGED
@@ -1,6 +1,4 @@
1
- require 'controller'
2
- require 'helper'
3
- require 'model'
1
+ require 'restful_acl'
4
2
 
5
3
  ActionController::Base.send :include, RestfulAclController
6
4
  ActionView::Base.send :include, RestfulAclHelper
data/restful_acl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{restful_acl}
8
- s.version = "2.1.1"
8
+ s.version = "2.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Darby"]
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  "lib/controller.rb",
25
25
  "lib/helper.rb",
26
26
  "lib/model.rb",
27
+ "lib/restful_acl.rb",
27
28
  "rails/init.rb",
28
29
  "restful_acl.gemspec",
29
30
  "uninstall.rb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_acl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
@@ -39,6 +39,7 @@ files:
39
39
  - lib/controller.rb
40
40
  - lib/helper.rb
41
41
  - lib/model.rb
42
+ - lib/restful_acl.rb
42
43
  - rails/init.rb
43
44
  - restful_acl.gemspec
44
45
  - uninstall.rb