Class: Decidim::Faker::Internet

Inherits:
Faker::Internet
  • Object
show all
Defined in:
lib/decidim/faker/internet.rb

Overview

A Custom Faker wrapper to modify Faker::Internet#slug

Class Method Summary collapse

Class Method Details

.slugObject

Fakes a slug, using EN locale to allow ASCII only



10
11
12
13
14
# File 'lib/decidim/faker/internet.rb', line 10

def self.slug(...)
  with_locale(:en) do
    ::Faker::Internet.slug(...)
  end
end