class ActionController::Base # need to make sure session settings are passed on # to the UJS controller as well or freaky stuff happens def self.session(*args) UnobtrusiveJavascriptController.send(:session, *args) unless self == UnobtrusiveJavascriptController super end end