Sha256: 348ecd3bdc3d6adc857452fa8a5c447547711b8e1e5d59da61fdabb838854a87
Contents?: true
Size: 495 Bytes
Versions: 6
Compression:
Stored size: 495 Bytes
Contents
module Backbonejs module Rails class Railtie < ::Rails::Railtie config.before_configuration do js_defaults = ::Rails.env.production? ? %w(json2 underscore.min backbone.min icanhaz.min) : %w(json2 underscore backbone icanhaz) # Merge the jQuery scripts, remove the Prototype defaults and finally add 'rails' # at the end, because load order is important config.action_view.javascript_expansions[:defaults] |= js_defaults end end end end
Version data entries
6 entries across 6 versions & 1 rubygems