Sha256: 6ebc8ba00d52585ce5028c2e76dd81d24d40e37cb22066792deefdfde1c49307
Contents?: true
Size: 357 Bytes
Versions: 3
Compression:
Stored size: 357 Bytes
Contents
class <%= view_name.classify %>Controller < ApplicationController def index @month = (params[:month] || (Time.zone || Time).now.month).to_i @year = (params[:year] || (Time.zone || Time).now.year).to_i @shown_month = Date.civil(@year, @month) @event_strips = <%= class_name.classify %>.event_strips_for_month(@shown_month) end end
Version data entries
3 entries across 3 versions & 1 rubygems