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-4.0.3 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-4.0.2 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-4.0.1 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-4.0.0 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-3.0.2 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-3.0.1 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-3.0.0 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-3.0.0.alpha1 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.36 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.35 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.34 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.33 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.32 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.31 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.30 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.29 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.28 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.27 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.26 lib/generators/authentication/templates/models/event.rb.tt
authentication-zero-2.16.25 lib/generators/authentication/templates/models/event.rb.tt