回答編集履歴

1

not type

2016/10/09 10:26

投稿

mimosa
mimosa

スコア21

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  # 先月
12
12
 
13
- scope :last_month, -> { where(type: Time.now.prev_month.beginning_of_month..Time.now.prev_month.end_of_month) }
13
+ scope :last_month, -> { where(created_at: Time.now.prev_month.beginning_of_month..Time.now.prev_month.end_of_month) }
14
14
 
15
15
  ...
16
16