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

Version Path
on_the_spot-0.0.12 lib/on_the_spot.rb
on_the_spot-0.0.11 lib/on_the_spot.rb
on_the_spot-0.0.10 lib/on_the_spot.rb
on_the_spot-0.0.9 lib/on_the_spot.rb
on_the_spot-0.0.8 lib/on_the_spot.rb
bradleypriest-on_the_spot-0.0.7 lib/on_the_spot.rb
on_the_spot-0.0.7 lib/on_the_spot.rb
on_the_spot-0.0.6 lib/on_the_spot.rb
on_the_spot-0.0.5 lib/on_the_spot.rb
on_the_spot-0.0.4 lib/on_the_spot.rb
on_the_spot-0.0.3 lib/on_the_spot.rb
on_the_spot-0.0.2 lib/on_the_spot.rb
on_the_spot-0.0.1 lib/on_the_spot.rb
on_the_spot-0.0.0.beta2 lib/on_the_spot.rb