stonepath 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/stonepath/event_logging.rb +2 -3
- data/lib/stonepath/work_item.rb +2 -1
- data/test/app_root/app/models/event_record.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -2,14 +2,13 @@ module StonePath
|
|
2
2
|
module EventLogging
|
3
3
|
|
4
4
|
def log_events
|
5
|
-
has_many :logged_events, :as => :auditable, :class_name => "EventRecord"
|
5
|
+
has_many :logged_events, :as => :auditable, :class_name => "EventRecord", :order => "created_at"
|
6
6
|
|
7
7
|
define_method :aasm_event_fired do |event_name, old_state_name, new_state_name|
|
8
|
-
current_user_id = User.current
|
9
8
|
self.logged_events.create(:event_name => event_name.to_s,
|
10
9
|
:old_state_name => old_state_name.to_s,
|
11
10
|
:new_state_name => new_state_name.to_s,
|
12
|
-
:
|
11
|
+
:user => User.current)
|
13
12
|
end
|
14
13
|
end
|
15
14
|
end
|
data/lib/stonepath/work_item.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stonepath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Bock
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-03-14 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|