Practicing Rails
Andrew Tomaka
7f540a73e1
Fix some law of demeter violations ``` @post.user.username ``` is not good ``` delegate :username, to: :user, prefix: true @post.user_username ``` is apparently good? Although I've never really seen the advantage since I feel like we're just masking an underlying problem. But at least it looks a little nicer. See merge request !14 |
||
---|---|---|
app | ||
bin | ||
config | ||
db | ||
lib | ||
log | ||
public | ||
spec | ||
vendor/assets | ||
.gitignore | ||
.metrics | ||
.rspec | ||
.ruby-version | ||
config.ru | ||
Gemfile | ||
Gemfile.lock | ||
Guardfile | ||
Rakefile | ||
README.md |
creddit
C(lone)reddit
Development
Some stuff for notifications later
Mac
brew install terminal-notifier