Rake Task in Rails engine 4.2 with quick fire error: already initialized constant STATS_DIRECTORIES

using rubies 2.1.1 and rails 4.2

just created a new engine

rails plugin new QuestionEngine  --mountable

modified gemfile

added

gem 'rapidfire', group: [:development]

ran

bundle

if i do gemlisti see

rake (10.4.2, 10.1.0)
ransack (1.5.1)
rapidfire (2.0.0)

Rapidfire has a built-in rake feature

I was inside the application area, not in test / dummy

bundle exec rake rapidfire:install:migrations


gems/railties-4.2.0/lib/rails/tasks/statistics.rake:4: warning: already initialized constant STATS_DIRECTORIES
gems/ruby-2.1.1@kloudreadiness/gems/railties-4.2.0/lib/rails/tasks/statistics.rake:4: warning: previous definition of STATS_DIRECTORIES was here
rake aborted!
Don't know how to build task 'rapidfire:install:migrations'

(See full trace by running task with --trace)

I try to use this stone in the engine, but migration does not work. I used to try the gem in another application and it worked fine.

I am not so familiar with rail engines, I also tried

bin/rails bundle exec rake rapidfire:install:migrations

I deleted the engine, renamed it lowercase and moved it outside of another directory and tried again, but it did not work. I have a rake installed.

, quickfire , .

+4
1

Test/dummy - . /, .

. Rapidfire - .

, /. , .

quickfire / , , .

, , . , , , , , , , ...

, quickfire .

+2

Source: https://habr.com/ru/post/1570199/


All Articles