Sha256: 2f58519efd41311422cf1839c19714dd0f1a8c94f3c2b7b216ea2912dcb9ac9f

Contents?: true

Size: 251 Bytes

Versions: 7

Compression:

Stored size: 251 Bytes

Contents

require 'time'

module LicenseFinder
  class ManualApproval < Sequel::Model
    plugin :timestamps, update_on_create: true

    def safe_created_at
      created_at.is_a?(String) ?
        Time.parse(created_at) :
        created_at
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
license_finder-1.2 lib/license_finder/tables/manual_approval.rb
license_finder-1.2-java lib/license_finder/tables/manual_approval.rb
license_finder-1.1.1-java lib/license_finder/tables/manual_approval.rb
license_finder-1.1.1 lib/license_finder/tables/manual_approval.rb
license_finder-1.1.0 lib/license_finder/tables/manual_approval.rb
license_finder-1.0.1 lib/license_finder/tables/manual_approval.rb
license_finder-1.0.0.1 lib/license_finder/tables/manual_approval.rb