tamed_beast 0.0.2 → 0.0.3
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/lib/tamed_beast/auth.rb +8 -8
- data/lib/tamed_beast/version.rb +1 -1
- metadata +6 -6
data/lib/tamed_beast/auth.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module TamedBeast::Auth
|
2
2
|
def self.included(base)
|
3
|
-
base.class_eval do
|
4
|
-
def current_user
|
5
|
-
|
6
|
-
nil
|
7
|
-
end
|
8
|
-
ActionController::Base.helper_method :current_user
|
9
|
-
end
|
3
|
+
#base.class_eval do
|
4
|
+
#def current_user
|
5
|
+
##@current_user ||= ((session[:user_id] && User.find_by_id(session[:user_id])) || 0)
|
6
|
+
#nil
|
7
|
+
#end
|
8
|
+
#ActionController::Base.helper_method :current_user
|
9
|
+
#end
|
10
10
|
|
11
11
|
protected
|
12
12
|
def login_required
|
@@ -18,7 +18,7 @@ module TamedBeast::Auth
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
ActionView::Base.send :include, TamedBeast::Auth
|
21
|
+
#ActionView::Base.send :include, TamedBeast::Auth
|
22
22
|
ActionController::Base.send :include, TamedBeast::Auth
|
23
23
|
|
24
24
|
|
data/lib/tamed_beast/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tamed_beast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Luca Bonmassar, Andrea Pavoni
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-09 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
requirements: []
|
154
154
|
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 1.
|
156
|
+
rubygems_version: 1.4.2
|
157
157
|
signing_key:
|
158
158
|
specification_version: 3
|
159
159
|
summary: Bullettin board for Rails 3
|