回答編集履歴

2

2017/04/12 08:24

投稿

moke
moke

スコア2241

test CHANGED
@@ -1,6 +1,8 @@
1
- 私もイマイチ使いこなせてないのですが。
1
+ 実は、draperはイマイチ使いこなせてないのですが。
2
2
 
3
- decorate_collectionは読んで字のごとくcollection(複数に使うもので)
3
+ decorate_collectionは読んで字のごとくcollection(複数)に使うもので
4
+
5
+ ※戻り値CollectionDecorater<<Array
4
6
 
5
7
  ```ruby
6
8
 
@@ -10,6 +12,8 @@
10
12
 
11
13
  これの単体版のdecorateにすればいいのではないですかね
12
14
 
15
+ ※戻り値Decorater
16
+
13
17
  ```ruby
14
18
 
15
19
  @section = SectionDecorator.decorate(Section.find(params[:id]))

1

2017/04/12 08:24

投稿

moke
moke

スコア2241

test CHANGED
@@ -1,3 +1,5 @@
1
+ 私もイマイチ使いこなせてないのですが。
2
+
1
3
  decorate_collectionは読んで字のごとくcollection(複数に使うもので)
2
4
 
3
5
  ```ruby