Sha256: 92f0239baa3b89a95add8e85ca88053dbb7f6447a0bd24c8b8eb0355bf8ce8f3

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

class LogsController < ApplicationController

  def view
    # param
    @mode = params[:mode]
    @year, @month = params[:year].to_i, params[:month].to_i

    # date
    @current_month = Date.new(@year, @month)
    @month_range = @current_month .. ((@current_month >> 1) - 1)

    # items
    @accounts = Account.all(:order => "position")
    @categories = Category.hashed
    @cat_all = [
      @categories[:expense],
      @categories[:income],
    ].flatten(1)
  end
  attr_reader :mode

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moneyrail-0.1.6 app/controllers/logs_controller.rb
moneyrail-0.1.5 app/controllers/logs_controller.rb
moneyrail-0.1.4 app/controllers/logs_controller.rb
moneyrail-0.1.2 app/controllers/logs_controller.rb