nagybence-railhead_autouser 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/railhead_autouser.rb +1 -1
- data/railhead_autouser.gemspec +1 -1
- metadata +1 -1
data/lib/railhead_autouser.rb
CHANGED
@@ -15,7 +15,7 @@ module RailheadAutoUserController
|
|
15
15
|
end
|
16
16
|
|
17
17
|
class RailheadAutoUserSweeper < ActionController::Caching::Sweeper
|
18
|
-
def
|
18
|
+
def before_validation(record)
|
19
19
|
record.user_id = current_user.id if current_user and record.respond_to?(:user_id) and record.new_record? and record.user_id.nil?
|
20
20
|
end
|
21
21
|
end
|
data/railhead_autouser.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "railhead_autouser"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.3"
|
4
4
|
s.date = "2009-01-28"
|
5
5
|
s.summary = "RailheadAutoUser is a Ruby on Rails plugin that automatically adds current_user to models."
|
6
6
|
s.email = "nagybence@tipogral.hu"
|