Module: EventsHelper

Defined in:
lib/forge/app/helpers/events_helper.rb

Instance Method Summary collapse

Instance Method Details

#events_calendar_procObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/forge/app/helpers/events_helper.rb', line 2

def events_calendar_proc
  proc do |time|
    ary = [time.day]

    Event.published.on(time.year, time.month, time.day).each do |e|
      ary << link_to(e.title, url_for(e))
    end

    ary.join("<br/>")
  end
end