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

superclass mismatch after installing forem #688

Open
toadle opened this issue Nov 17, 2015 · 1 comment
Open

superclass mismatch after installing forem #688

toadle opened this issue Nov 17, 2015 · 1 comment

Comments

@toadle
Copy link

toadle commented Nov 17, 2015

Hey guys,

after installing forem my application suddenly started to behave strange. At first load everything works fine, but after reloading classes in development-mode, I suddenly get the following error:

TypeError (superclass mismatch for class ArticleDecorator):
  app/decorators/contentful/article_decorator.rb:1:in `<top (required)>'


  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.4ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (53.4ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/_markup.html.erb (0.4ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.3ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.5ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/console.js.erb within layouts/javascript (52.8ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.5ms)
  Rendered /Users/tim/.rvm/gems/ruby-2.2.2@hopla/gems/web-console-2.2.1/lib/web_console/templates/index.html.erb (116.9ms)

bildschirmfoto 2015-11-17 um 17 55 41

Strange thing: My ArticleDecorator is namespaced therefore this shouldn't happen. Also: Aren't engines like forem namespaced too, so that this should be happening?

Any advise would be appreciated...

@phillyslick
Copy link

Looks like a possible conflict between Draper and Decorators:
parndt/decorators#1

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