Sha256: 61657e1978f13cd9c2c3e853aba1b65635c2641f6b997a10372eac7ebc294aa1

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

require "bootstrap2-rails/version"
require "will_paginate"
require "bootstrap2-rails/bootstrap_helper"
require "bootstrap2-rails/menu_creator"

module BootstrapRails
  module Rails
    class Engine < ::Rails::Engine
      # Include helper inside app
      ActionView::Base.send :include, BootstrapHelper
      ActionView::Base.send :include, MenuCreator

      config.app_generators do |g|
        # Make templates loadable from gem insted of copying to app
        g.templates.unshift File::expand_path('../templates', __FILE__)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap2-rails-0.0.7 lib/bootstrap2-rails.rb
bootstrap2-rails-0.0.6 lib/bootstrap2-rails.rb
bootstrap2-rails-0.0.5 lib/bootstrap2-rails.rb
bootstrap2-rails-0.0.4 lib/bootstrap2-rails.rb
bootstrap2-rails-0.0.3 lib/bootstrap2-rails.rb
bootstrap2-rails-0.0.2 lib/bootstrap2-rails.rb
bootstrap2-rails-0.0.1 lib/bootstrap2-rails.rb