Sha256: 0ab61db7a0249d21bd5009d8ba8ca43993c028ed7ead18527c49a86918e72fe6
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
require "rails_sandbox_jasmine/version" require "rails-sandbox-assets" module RailsSandboxJasmine class JasmineFilter def self.before(controller) controller.template = 'jasmine/runner' if controller.params[:path].try :start_with?, 'jasmine' end end class Engine < Rails::Engine initializer 'sandbox_assets.jasmine' do |app| unless app.config.sandbox_assets.template == 'jasmine/runner' SandboxAssets::BaseController.prepend_before_filter JasmineFilter end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_sandbox_jasmine-0.1.0 | lib/rails_sandbox_jasmine.rb |