commit
793ead5d5f
|
@ -48,7 +48,7 @@ end
|
|||
But it makes you a little uncomfortable. `publication_status` lives in a
|
||||
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
|
||||
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
|
||||
Ruby style), or you break it out into two methods, `book_publication_status` and
|
||||
|
|
Loading…
Reference in New Issue