Included workaround for issue #269 in examples/dynamic-scheduling folder.

That folder contains only the relevant files for the workaround; they would have to be put in a Rails application to work. It is not a complete application.
Fix defects detected by rubocop.
Merge pull request #312 from amatriain/dynamic-schedule-example

Included workaround for issue #269 in examples/dynamic-scheduling folder...