railhead_autouser 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ module RailheadAutoUserController
15
15
  end
16
16
 
17
17
  class RailheadAutoUserSweeper < ActionController::Caching::Sweeper
18
- def before_validation(record)
18
+ def before_save(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
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_autouser"
3
- s.version = "0.1.3"
4
- s.date = "2009-01-28"
3
+ s.version = "0.1.4"
4
+ s.date = "2009-10-22"
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"
7
7
  s.homepage = "http://github.com/nagybence/railhead_autouser"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_autouser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bence Nagy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-28 00:00:00 +01:00
12
+ date: 2009-10-22 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15