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

데코레이터 활용하기 #56

Open
shaynekang opened this issue Apr 8, 2015 · 0 comments
Open

데코레이터 활용하기 #56

shaynekang opened this issue Apr 8, 2015 · 0 comments

Comments

@shaynekang
Copy link

뷰(View)가 복잡해지기 시작하면 코드 작성에 어려움이 많습니다. 주기적으로 리펙토링을 해 줄 필요가 있죠. ㅎㅎ

모델에서 불러오는 내용을 뷰에서 보여줄 때, 레일즈에서는 Draper라는 젬을 사용합니다. 디자인 패턴의 '데코레이터'와 흡사한 개념이죠. 살펴보시고 시간 날 때 리펙토링 하도록 합시다~

PS) 레일즈 캐스트에서 좀 더 자세한 사용법을 볼 수 있습니다. ㅎㅎ

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

No branches or pull requests

1 participant