chronicles_controller.rb 274 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

class ChroniclesController < ApplicationController

  before_filter :set_chronicle, :only => [:show]


  def show
  
  end

  protected

  def set_chronicle
    @chronicle = (Earning.all + Redemption.all).sort do |a,b|
      a.created_at <=> b.created_at
    end
  end
end