-
Notifications
You must be signed in to change notification settings - Fork 167
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
indicates the thought patterns of someone with an ActiveRecord backgr… #212
base: master
Are you sure you want to change the base?
Conversation
@TheNotary Thanks! This is a great idea, I will work one this on Monday and give you feedback. It looks very good, I think we will be able to merge it next week. |
|
||
class Loadout < Ohm::Model | ||
attribute :head_id | ||
reference :head, :Item |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reference
macro already defines the head_id
attribute, so all the attribute :*_id
lines can be removed.
Thanks for the feedback, and wow, good to know about deps and gs, I hadn't heard of this approach! I'm a bit short on freetime at the moment, but I'll flesh out that second test... and I'll do a 'populate_db' method for populating items so they can be |
reference :equipment, :Loadout | ||
end | ||
|
||
# We define both a `Video` and `Audio` model, with a `list` of *comments*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's from a different example this comment.
…ound
First thanks for working on this! Interacting directly with Redis does not seem workable for complex projects. Could I possibly get some feedback on this PR, rework the commit and then get it merged into the repo to help others who might have wanted to know similar things?