mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
commit
793ead5d5f
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ end
|
||||||
But it makes you a little uncomfortable. `publication_status` lives in a
|
But it makes you a little uncomfortable. `publication_status` lives in a
|
||||||
nebulous namespace spread across all controllers and view. Down the road, you
|
nebulous namespace spread across all controllers and view. Down the road, you
|
||||||
might want to display the publication status of a `Book`. And, of course, your
|
might want to display the publication status of a `Book`. And, of course, your
|
||||||
design calls for a slighly different formatting to the date for a `Book`.
|
design calls for a slightly different formatting to the date for a `Book`.
|
||||||
|
|
||||||
Now your helper method can either switch based on the input class type (poor
|
Now your helper method can either switch based on the input class type (poor
|
||||||
Ruby style), or you break it out into two methods, `book_publication_status` and
|
Ruby style), or you break it out into two methods, `book_publication_status` and
|
||||||
|
|
Loading…
Reference in a new issue