lib/forge/app/controllers/events_controller.rb in forge-cli-0.0.10 vs lib/forge/app/controllers/events_controller.rb in forge-cli-0.0.11

- old
+ new

@@ -1,15 +1,15 @@ class EventsController < ApplicationController caches_page :index, :show - if Forge::Settings[:events][:display] == 'calendar' + if Forge.config.events.display == :calendar helper LaterDude::CalendarHelper end def index @page_title = 'Listing Events' - if Forge::Settings[:events][:display] == 'calendar' + if Forge.config.events.display == :calendar now = Time.now @year = (params[:year] || now.year).to_i @month = (params[:month] || now.month).to_i