-
Notifications
You must be signed in to change notification settings - Fork 4
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
Not working for active_record 2.3.2 #1
Comments
I looks like when I upgraded it to Rails 3 I used class_attribute to Scott On Fri, Aug 2, 2013 at 7:48 AM, umaviswanathan [email protected]:
|
Its working when I changed class_attribute to class_inheritable_hash in submodel_index.rb for sunspot_submodel_index 0.0.4 in rails 2.3.2 Thanks Scott |
No problem. On Friday, August 2, 2013, umaviswanathan wrote:
|
HI Scott, can I fork the repository for this rails2 version . |
Please do. It shouldn't be that big of a change. It will work with the Scott On Wed, Sep 4, 2013 at 7:36 AM, umaviswanathan [email protected]:
|
Hi, Any idea on this ? |
@PBalraj 2.3.18 should have class_attribute to replace class_inheritable_hash. Try the latest version of sunspot_submodel_index and let me know. Also, if it still breaks please include the stack trace. |
Thanks for ur reply The trace below here for your reference pandu@administrator-desktop:~/project$ bundle exec rake sunspot:solr:reindex[100,Project] --trace |
If you are not getting a similar error when running your app from the rails server it may be a problem with the gem not getting required in Rake. You might want to write your own rake task to try and load the Active record you are trying to reindex and see if it can load. Remember to include your environment in the rake task. |
I have included this
sunspot_submodel_index :parent => :usage
in model file
while checking the page in browser I got this error
undefined method `class_attribute' for #Class:0xb60b4f30
/home/premedia/.rvm/gems/ruby-1.8.7-p370/gems/activerecord-2.3.2/lib/active_record/base.rb:1964:in
method_missing_without_paginate' /home/premedia/.rvm/gems/ruby-1.8.7-p370/gems/will_paginate-2.3.16/lib/will_paginate/finder.rb:170:in
method_missing'/home/premedia/.rvm/gems/ruby-1.8.7-p370/gems/sunspot_submodel_index-0.0.4/lib/sunspot_submodel_index/submodel_index.rb:33:in
sunspot_submodel_index' /home/premedia/Desktop/prepress/app/models/request.rb:23 /home/premedia/Desktop/prepress/app/views/projects/index.html.erb:42:in
_run_erb_app47views47projects47index46html46erb'/home/premedia/Desktop/prepress/app/views/projects/index.html.erb:30:in
each' /home/premedia/Desktop/prepress/app/views/projects/index.html.erb:30:in
_run_erb_app47views47projects47index46html46erb'can I get any help on this?
The text was updated successfully, but these errors were encountered: