Sha256: 58e465a69f44bc8c64e0f1f35c4855e0ea4e1ecc5ddc7aa15d4b021b7b2946df

Contents?: true

Size: 310 Bytes

Versions: 6

Compression:

Stored size: 310 Bytes

Contents

require 'active_record'

module RestAssured
  module Models
    class Request < ActiveRecord::Base
      belongs_to :double

      validates_presence_of :rack_env

      after_create :save_created_at

      private
        def save_created_at
          self.created_at = Time.now
        end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rest-assured-4.0.0 lib/rest-assured/models/request.rb
rest-assured-3.0.1 lib/rest-assured/models/request.rb
rest-assured-3.0.0 lib/rest-assured/models/request.rb
rest-assured-2.2.0 lib/rest-assured/models/request.rb
rest-assured-2.1.0 lib/rest-assured/models/request.rb
rest-assured-2.0.2 lib/rest-assured/models/request.rb