Sha256: 8aa656ff97dacbc8de2d8a82628498d291a1a7620aa4af7bec2d1077ee223c67

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

class LogsController < ApplicationController

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

    first_day = Date.new(@year, @month)
    @month_range = first_day .. ((first_day >> 1) - 1)

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

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
yhara-moneyrail-0.0.2 app/controllers/logs_controller.rb
moneyrail-0.0.2 app/controllers/logs_controller.rb