errbit: uninitialized constant DecentExposure::StrongParametersStrategy
Hi, after upgrading from errbit v0.6.0 to current master, I’m getting the following error when trying to start the application. But decent_exposure gem is installed and has the newest version. I’m running ruby 2.3.1, before everything worked fine. Any ideas?
NameError: uninitialized constant DecentExposure::StrongParametersStrategy
/var/www/errbit/app/controllers/application_controller.rb:10:in <class:ApplicationController>' /var/www/errbit/app/controllers/application_controller.rb:1:in
<top (required)>’
/var/www/errbit/app/controllers/api/v1/notices_controller.rb:1:in <top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.5.2/lib/rails/engine.rb:472:in
block (2 levels) in eager_load!’
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.5.2/lib/rails/engine.rb:471:in each' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.5.2/lib/rails/engine.rb:471:in
block in eager_load!’
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.5.2/lib/rails/engine.rb:469:in each' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.5.2/lib/rails/engine.rb:469:in
eager_load!’
/usr/local/rvm/gems/ruby-2.3.1/gems/mongoid-5.0.2/lib/mongoid/railties/database.rake:70:in block (3 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in
<top (required)>’
/usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in eval' /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
<main>’
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (9 by maintainers)
I have the same issue too.
The
lib/decent_exposure/strong_parameters_strategy.rb
file was removed from the 3.x branch of thedecent_exposure
: https://github.com/hashrocket/decent_exposure/tree/v3.0.2/lib/decent_exposure https://github.com/hashrocket/decent_exposure/blob/v2.3.3/lib/decent_exposure/strong_parameters_strategy.rb