-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
I am writing a rails engine gem which depends on active_model_serializers gem.
It provides `initializers/active_model_serializers.rb
# When false, serializers must be explicitly specified
ActiveModelSerializers.config.serializer_lookup_enabled = false
when i actually installed my engine, and typed rails g
to show my engine generators command.
I got the following errors somehow...
➜ officepod git:(backend) ✗ rails generate
/Users/seoyoochan/.rvm/gems/ruby-2.2.4@officepod/bundler/gems/officepod-gem-58b38f9ad336/config/initializers/active_model_serializers.rb:2:in `<top (required)>': uninitialized constant ActiveModelSerializers (NameError)
from /Users/seoyoochan/.rvm/gems/ruby-2.2.4@officepod/gems/railties-4.2.5/lib/rails/engine.rb:652:in `block in load_config_initializer'
My guess is that it is caused by the old version, which is active_model_serializers (0.9.4)