Sha256: 83dbf027fd89385343e32e77f12cff02fe010c86036100469c9153595c2fc243

Contents?: true

Size: 652 Bytes

Versions: 7

Compression:

Stored size: 652 Bytes

Contents

class User < 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

7 entries across 7 versions & 1 rubygems

Version Path
gdpr_rails-0.5.1 spec/dummy/app/models/user.rb
gdpr_rails-0.5.0 spec/dummy/app/models/user.rb
gdpr_rails-0.4.0 spec/dummy/app/models/user.rb
gdpr_rails-0.3.4 spec/dummy/app/models/user.rb
gdpr_rails-0.3.3 spec/dummy/app/models/user.rb
gdpr_rails-0.3.2 spec/dummy/app/models/user.rb
gdpr_rails-0.3.1 spec/dummy/app/models/user.rb