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

NoMethodError: undefined method `=~' for #<Pathname> #156

Closed
ondra-m opened this issue Mar 18, 2016 · 2 comments
Closed

NoMethodError: undefined method `=~' for #<Pathname> #156

ondra-m opened this issue Mar 18, 2016 · 2 comments

Comments

@ondra-m
Copy link

ondra-m commented Mar 18, 2016

Some rails engines are using Pathname instead of String on config.eager_load_paths

Result is

NoMethodError: undefined method `=~' for #<Pathname>
deface-1.0.2/lib/deface/railtie.rb:50:in `block (3 levels) in <class:Railtie>'
deface-1.0.2/lib/deface/railtie.rb:50:in `reject!'
deface-1.0.2/lib/deface/railtie.rb:50:in `block (2 levels) in <class:Railtie>'
deface-1.0.2/lib/deface/railtie.rb:48:in `each'
deface-1.0.2/lib/deface/railtie.rb:48:in `block in <class:Railtie>'
@rhulka
Copy link

rhulka commented Jul 12, 2016

maybe this can be useful to someone, I have made following workaround to avoid this issue rhulka@f517f34 (just converting object to string)

I use this gem as dependency in redmine plugin
Redmine version 3.2.0.stable
Ruby version 2.0.0-p643 (2015-02-25) [x86_64-linux]
Rails version 4.2.5.1

@damianlegawiec
Copy link
Member

Hi @rhulka can you do a PR with this change? Thanks!

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

3 participants