You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my first time posting an issue on any open source project so apologies if it's not done in the usual format.
I have a model like this:
class GradeGrade < ActiveRecord::Base
belongs_to :grade_item, :foreign_key => :itemid
has_one :moodle_course, :through => :grade_item ### This is broken by nested has many
end
In the console I could do the following:
g = GradeGrade.find(26)
g.moodle_course
It works fine without this plugin installed and shows this:
Mysql::Error: Unknown column 'mdl_course.grade_grade_id' in 'where clause': SELECT mdl_course.* FROM mdl_course WHERE (mdl_course.grade_grade_id = 26 )
when I install nested_has_many_through plugin.
Would love to help fix this but dont feel I have the expertise. Hope one of you bright chaps can help sort it out.
Regards,
Kevin.
The text was updated successfully, but these errors were encountered:
I got it working by using one of the other forks. I think it may have been JackDanger or logophobia. I can't remember which one now. There's a reference to it in one of the commit messages.
This is my first time posting an issue on any open source project so apologies if it's not done in the usual format.
I have a model like this:
class GradeGrade < ActiveRecord::Base
belongs_to :grade_item, :foreign_key => :itemid
has_one :moodle_course, :through => :grade_item ### This is broken by nested has many
end
In the console I could do the following:
g = GradeGrade.find(26)
g.moodle_course
It works fine without this plugin installed and shows this:
Mysql::Error: Unknown column 'mdl_course.grade_grade_id' in 'where clause': SELECT
mdl_course
.* FROMmdl_course
WHERE (mdl_course.grade_grade_id = 26 )when I install nested_has_many_through plugin.
Would love to help fix this but dont feel I have the expertise. Hope one of you bright chaps can help sort it out.
Regards,
Kevin.
The text was updated successfully, but these errors were encountered: