mayi 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  # MayI
2
2
 
3
- A plugable access rights API. Meant to make integrations easier. Werry useful as an integration point for blog,forum and CMS components. Also its much nicer to read than the basic stuff i usually do.
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
- # Refresh with the relevant data for this request
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
+ 1.0.2
@@ -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}"] || refresh
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)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mayi"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darwin"]
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.1
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: -352664706531760730
118
+ hash: -398463573678793695
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements: