Class: Decidim::Faker::Internet
- Inherits:
-
Faker::Internet
- Object
- Faker::Internet
- Decidim::Faker::Internet
- Defined in:
- lib/decidim/faker/internet.rb
Overview
A Custom Faker wrapper to modify Faker::Internet#slug
Class Method Summary collapse
-
.slug ⇒ Object
Fakes a slug, using EN locale to allow ASCII only.
Class Method Details
.slug ⇒ Object
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 |