diff options
| author | David Workman <workmad3@gmail.com> | 2011-05-23 22:33:03 +0100 |
|---|---|---|
| committer | David Workman <workmad3@gmail.com> | 2011-05-23 22:33:03 +0100 |
| commit | 86afbf7464e96dd156895eba2fa44b41678cdd6e (patch) | |
| tree | 57deaac74a052492142cee44c0ddd764bf0b0af8 /railties/guides/code/getting_started/app/helpers/posts_helper.rb | |
| parent | 8588dd431b03616ed815c8ee82a387540a6e571b (diff) | |
| download | rails-86afbf7464e96dd156895eba2fa44b41678cdd6e.tar.gz rails-86afbf7464e96dd156895eba2fa44b41678cdd6e.tar.bz2 rails-86afbf7464e96dd156895eba2fa44b41678cdd6e.zip | |
Using .try to test for the existence of a method option in a nil-resistent manner. Inlined the determination of the options hash for reversing using a ternary operator. Shortens the method in a way that keeps the code neat
Diffstat (limited to 'railties/guides/code/getting_started/app/helpers/posts_helper.rb')
0 files changed, 0 insertions, 0 deletions
