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 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
- my_mom :some_model_name
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
- my_mom :project
93
+ logical_parent :project
94
94
 
95
95
  belongs_to :author
96
96
  belongs_to :project
@@ -8,7 +8,7 @@ module RestfulAclModel
8
8
  module ClassMethods
9
9
  attr_accessor :mom
10
10
 
11
- def my_mom(model)
11
+ def logical_parent(model)
12
12
  self.mom = model
13
13
  include RestfulAclModel::InstanceMethods
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdarby-restful_acl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby