mdarby-restful_acl 2.0.1 → 2.0.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 +2 -2
- data/lib/restful_acl_model.rb +1 -1
- metadata +1 -1
data/README.textile
CHANGED
@@ -43,7 +43,7 @@ Define a parent resource (if one exists) by using the <b>my_mom</b> method, and
|
|
43
43
|
|
44
44
|
<pre>
|
45
45
|
class Issue < ActiveRecord::Base
|
46
|
-
|
46
|
+
logical_parent :some_model_name
|
47
47
|
|
48
48
|
# This method checks permissions for the :index action
|
49
49
|
def self.is_indexable_by(user, parent = nil)
|
@@ -90,7 +90,7 @@ Let's say that you have two resources: Project and Issue. A Project has many Iss
|
|
90
90
|
|
91
91
|
<pre>
|
92
92
|
class Issue < ActiveRecord::Base
|
93
|
-
|
93
|
+
logical_parent :project
|
94
94
|
|
95
95
|
belongs_to :author
|
96
96
|
belongs_to :project
|
data/lib/restful_acl_model.rb
CHANGED