Sha256: abe630a8eb1a5d5e26694a2f17a43ff8b94f23168a129daa2a3b81ea92be28d8
Contents?: true
Size: 673 Bytes
Versions: 9
Compression:
Stored size: 673 Bytes
Contents
require 'on_the_spot/controller_extension' require 'on_the_spot/on_the_spot_helpers' module OnTheSpot class Engine < ::Rails::Engine config.before_initialize do if config.action_view.javascript_expansions config.action_view.javascript_expansions[:on_the_spot] = %w(jquery.jeditable.mini.js on_the_spot_code) end end # configure our plugin on boot. other extension points such # as configuration, rake tasks, etc, are also available initializer "on_the_spot.initialize" do |app| ActionController::Base.send :include, OnTheSpot::ControllerExtension ActionView::Base.send :include, OnTheSpot::Helpers end end end
Version data entries
9 entries across 9 versions & 1 rubygems