Sha256: aa53b6485893b87398dd85761b91325ed8db6de33e10644237dcc27f9ad84e37

Contents?: true

Size: 163 Bytes

Versions: 64

Compression:

Stored size: 163 Bytes

Contents

class Event < ApplicationRecord
  belongs_to :user

  before_create do
    self.user_agent = Current.user_agent
    self.ip_address = Current.ip_address
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
authentication-zero-2.12.3 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.12.2 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.12.1 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.12.0 lib/generators/authentication/templates/models/event.rb.tt