I am using merit library in rails. And hope to add an association in Merit::Score::Point so that it has a has_one association with another model call ScoreWorkflow.
Below is my code. In this code, I hope to add an association so that I can add a has_one to the library model. However it does not work. Is there anything that like this that I can put some function/assoication to a library model. Thanks.
module Merit
module Score
class Point < Point
has_one :score_workflow
end
end
end
If you want it the other way around...
... and...
Sometimes you must specify the class names:
Also make sure to check your foreign keys if you use ActiveRecord, so they match the conventions.