Sha256: f9aa4ce464569730c3ed2548b474572de5626028fea8a25c6625db53ef8bd168
Contents?: true
Size: 608 Bytes
Versions: 14
Compression:
Stored size: 608 Bytes
Contents
require 'on_the_spot/controller_extension' require 'on_the_spot/on_the_spot_helpers' module OnTheSpot class Railtie < ::Rails::Railtie config.before_initialize do config.action_view.javascript_expansions[:on_the_spot] = %w(jquery.jeditable.mini.js on_the_spot) 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
14 entries across 14 versions & 2 rubygems