nathanvda/on_the_spot — pull request #48 by driedyam (2013-07-16 22:55:16+00:00)
Title: Make sure javascript_expansions config option exists

Provides compatibility for Rails 4.

javascript_expansions config option has been removed in Rails 4 (along with all old asset concat tags), so we have to check for its existence first, like jquery-rails does:
https://github.com/rails/jquery-rails/blob/master/lib/jquery/rails/railtie.rb