vinsol / fullcalendar-rails-engine

Rails engine implementation of fullcalendar jQuery plugin(http://arshaw.com/fullcalendar/). Create, edit, delete, reschedule, resize events like google calendar.
http://vinsol.com/fullcalendar-demo
MIT License
66 stars 51 forks source link

fullcalendar.yml options not overriding defaults #36

Open apatel opened 7 years ago

apatel commented 7 years ago

Hi,

Not sure if this gem is still being maintained but figured I'd throw my issue out here. I am adding configs in fullcalendar.yml to override the defaults and some of them are not being overridden and I believe it is because they are being hard set again in app/assets/javascripts/fullcalendar_engine/fullcalendar.js in var defaults = {

This is the contents of my fullcalendar.yml:

mount_path: "/fullcalendar" layout: 'custom' height: 1000 defaultView: 'agendaWeek' timeFormat: "h:mm a{ - h:mm a}" allDayDefault: false

However, defaultView, timeFormat and allDayDefault are not being set property, they are set to what is in fullcalendar.js. Even configs in config/initializers/configuration.rb are being overridden by what's in fullcalendar.js.

Anyone know how I can get this to work? Thanks for any help!