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

Support for STI #61

Open
SkylerRogers opened this issue Sep 28, 2014 · 3 comments
Open

Support for STI #61

SkylerRogers opened this issue Sep 28, 2014 · 3 comments
Assignees
Labels

Comments

@SkylerRogers
Copy link

No description provided.

@joncalhoun
Copy link
Member

Testing for this completely slipped my mind. What does it currently do?

@SkylerRogers
Copy link
Author

Hey Jon,

Thanks for the quick reply. So I have a setup something like this:

  class Content < ActiveRecord::Base
  end

  class Article < Content
  end

If I try and call the base class that inherits from ActiveRecord (for example www.mydomain.com/admin/m/Content), I get a "stack level too deep" error from actionpack.

However, if I call one of the inherited classes (for example www.mydomain.com/admin/m/Article), I get an error "Invalid argument: AdminArticle" from the initialize method in lib/upmin/query.rb.

Not sure if that helps or not. This is my first time using upmin so I am still learning the codebase, but if I am able to figure out the root cause and/or come up with a patch Ill be sure to add on to this thread.

Thanks again, really neat solution you put together.

All The Best,
Skyler

@joncalhoun
Copy link
Member

Ill try to check it out later this week, but what you provided should help get me started.

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

No branches or pull requests

2 participants