Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespacing Config Fails Out of the Box #210

Open
brchristian opened this issue Sep 22, 2020 · 1 comment
Open

Namespacing Config Fails Out of the Box #210

brchristian opened this issue Sep 22, 2020 · 1 comment

Comments

@brchristian
Copy link

brchristian commented Sep 22, 2020

I created a brand new Rails (6.0.3.3) app and added Deface to the Gemfile. I ran bundle.

Then, following the README, I went into config/application.rb and added the following:

config.deface.namespaced = true

When I try to run my Rails app, it crashes instantly, with:

ruby/2.6.6/gems/railties-6.0.3.3/lib/rails/railtie/configuration.rb:96:in `method_missing’:
undefined method `deface' for #<Rails::Application::Configuration:0x00007ffae8262448> (NoMethodError)
        from fooapp/config/application.rb:19:in `<class:Application>'                                               
	from fooapp/config/application.rb:10:in `<module:Fooapp>'
	from fooapp/config/application.rb:9:in `<top (required)>'
	from ruby/2.6.6/gems/spring-2.1.1/lib/spring/application.rb:92:in `require'
	from ruby/2.6.6/gems/spring-2.1.1/lib/spring/application.rb:92:in `preload'
	from ruby/2.6.6/gems/spring-2.1.1/lib/spring/application.rb:157:in `serve'
	from /ruby/2.6.6/gems/spring-2.1.1/lib/spring/application.rb:145:in `block in run'
	from /ruby/2.6.6/gems/spring-2.1.1/lib/spring/application.rb:139:in `loop'
	from /ruby/2.6.6/gems/spring-2.1.1/lib/spring/application.rb:139:in `run'
	from /ruby/2.6.6/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in `<top (required)>'
	from -e:1:in `require'
	from -e:1:in `<main>'

What am I doing wrong?

@pelargir
Copy link

Same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants