Sha256: dbef51d4fae08ee68823d8b5650e1ef1785ae3d88c9d4f27ed87bfaa57968ea9

Contents?: true

Size: 671 Bytes

Versions: 3

Compression:

Stored size: 671 Bytes

Contents

class AnotherUser < ApplicationRecord
  include PolicyManager::Concerns::UserBehavior

  def enabled_for_validation
    true
  end

  def foo_data
    30.times.map do |i|
      OpenStruct.new(
          :id => i,
          :country => "Australia",
          :population => 20_000_000,
          image: "http://lorempixel.com/400/200/sports/"
      )
    end
  end

  def account_data
    {
        name: "me",
        dob: 30.years.ago,
        image: "https://images.pexels.com/photos/34950/pexels-photo.jpg?auto=compress&cs=tinysrgb&h=650&w=940 1x, https://images.pexels.com/photos/34950/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940 2x"
    }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gdpr_rails-0.5.1 spec/dummy/app/models/another_user.rb
gdpr_rails-0.5.0 spec/dummy/app/models/another_user.rb
gdpr_rails-0.4.0 spec/dummy/app/models/another_user.rb