mayi 1.0.1 → 1.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.markdown +2 -2
- data/VERSION +1 -1
- data/lib/mayi/access.rb +3 -1
- data/mayi.gemspec +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# MayI
|
2
2
|
|
3
|
-
A plugable access rights API. Meant to make integrations easier.
|
3
|
+
A plugable access rights API. Meant to make integrations easier. Verry useful as an integration point for blog,forum and CMS components. Also its much nicer to read than the basic stuff i usually do.
|
4
4
|
|
5
5
|
Before without MayI.
|
6
6
|
|
@@ -95,7 +95,7 @@ class ApplicationController < ActionController::Base
|
|
95
95
|
before_filter :init_access
|
96
96
|
|
97
97
|
def init_access
|
98
|
-
#
|
98
|
+
# Create a new instance of MyBasicAccess with the current session
|
99
99
|
ApplicationController.access.refresh({:session => session})
|
100
100
|
end
|
101
101
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/lib/mayi/access.rb
CHANGED
@@ -23,7 +23,9 @@ module MayI
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def current_instance
|
26
|
-
Thread.current["mayi_access_implementation_#{self.object_id}"]
|
26
|
+
raise "You must call refresh to create a new instance of your Access implementation before being able to use the access object." unless Thread.current["mayi_access_implementation_#{self.object_id}"]
|
27
|
+
|
28
|
+
Thread.current["mayi_access_implementation_#{self.object_id}"]
|
27
29
|
end
|
28
30
|
|
29
31
|
def method_missing(meth, *args, &block)
|
data/mayi.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mayi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
segments:
|
117
117
|
- 0
|
118
|
-
hash: -
|
118
|
+
hash: -398463573678793695
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
none: false
|
121
121
|
requirements:
|