Sha256: 4978fdd46ae7e1860b2dea3d3123d3d599f2b7f386c65febb93c00d85c70481e

Contents?: true

Size: 270 Bytes

Versions: 4

Compression:

Stored size: 270 Bytes

Contents

class Openall_time_applet::Models::Timelog_logged_time < Knj::Datarow
  has_one [
    {:class => :Timelog, :col => :timelog_id, :method => :timelog, :depends => true}
  ]
  
  def self.add(d)
    d.data[:timestamp_start] = Time.now if !d.data[:timestamp_start]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openall_time_applet-0.0.18 models/timelog_logged_time.rb
openall_time_applet-0.0.17 models/timelog_logged_time.rb
openall_time_applet-0.0.16 models/timelog_logged_time.rb
openall_time_applet-0.0.15 models/timelog_logged_time.rb