Sha256: 6d8b8634e33546cdaeadfef6008146ea69b497e8f84120a9896b4d9e345c2622

Contents?: true

Size: 223 Bytes

Versions: 5

Compression:

Stored size: 223 Bytes

Contents

module SecondStep::Models
  module ApplicationUser
    # ORM implementation:
    #
    # Attributes: token, :uuid
    # Has one: application_user

    def uuid
      super || self.uuid = SecureRandom.uuid
    end
  end
end

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
second_step-0.2.0 lib/second_step/models/application_user.rb
second_step-0.1.4 lib/second_step/models/application_user.rb
second_step-0.1.3 lib/second_step/models/application_user.rb
second_step-0.1.2 lib/second_step/models/application_user.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/second_step-0.1.1/lib/second_step/models/application_user.rb