Do not require faker gem by default

To save loading time.
pull/11504/head
Christophe Bliard 2 years ago
parent d76605182b
commit 1af5d6efaf
No known key found for this signature in database
GPG Key ID: 2BC07603210C3FA4
  1. 2
      Gemfile
  2. 2
      lib/tasks/sample_data.rake

@ -260,7 +260,7 @@ end
group :development do
gem 'listen', '~> 3.7.0' # Use for event-based reloaders
gem 'faker'
gem 'faker', require: false
gem 'letter_opener'
gem 'spring'

@ -29,6 +29,8 @@
namespace :sample_data do
desc 'Create the given number of fake projects'
task :projects, [:nr_of_projects] => :environment do |_task, args|
require 'faker'
puts "Creating #{args[:nr_of_projects]} fake projects"
args[:nr_of_projects].to_i.times do |i|

Loading…
Cancel
Save