Skip to content

Commit

Permalink
Merge pull request #15 from gazay/chore/generate_id
Browse files Browse the repository at this point in the history
Generate action id if it wasn't provided
  • Loading branch information
wilddima committed Oct 1, 2018
2 parents fbe0afb + 29164dd commit 8af0eca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/logux/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Meta < Hashie::Mash

def initialize(source_hash = nil, default = nil, &blk)
super
self[:id] ||= Logux.generate_action_id
self[:time] ||= Time.now.to_datetime.strftime('%Q')
end

Expand Down

0 comments on commit 8af0eca

Please sign in to comment.