Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 274 Bytes
require 'flotilla'
# Check for presence of jrails plugin
begin
Flotilla.jrails_present = true
require 'jrails'
rescue Exception
Flotilla.jrails_present = false
end
ActionView::Helpers::JavaScriptHelper.send :include, Flotilla
ActionView::Base.send :include, Flotilla