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

indicates the thought patterns of someone with an ActiveRecord backgr… #212

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

TheNotary
Copy link

…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?

@soveran
Copy link
Owner

soveran commented Jun 3, 2016

@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
Copy link
Owner

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.

@soveran
Copy link
Owner

soveran commented Jun 16, 2016

We don't use Bundler, so I'm wondering if your example should be in a directory inside ./examples, where you could also include this Gemfile. Instead of Bundler, we use dep and gs. You can read about that approach here.

@TheNotary
Copy link
Author

TheNotary commented Jun 16, 2016

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 looked up rather than created every time, and then associated with a persons :body for instance.

reference :equipment, :Loadout
end

# We define both a `Video` and `Audio` model, with a `list` of *comments*.
Copy link

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.

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

Successfully merging this pull request may close these issues.

None yet

3 participants