Sha256: 24cdb3ad93def97fded5d9537a4f987c8672e9ef4e3a207d34d93a5ab52b78e9

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

require 'rails'

require File.dirname(__FILE__) + '/../../../app/helpers/flash_block_helper.rb'
require File.dirname(__FILE__) + '/../../../app/helpers/glyph_helper.rb'
require File.dirname(__FILE__) + '/../../../app/helpers/social_glyph_helper.rb'

module Groundworkcss
	module Rails
		class Engine < ::Rails::Engine
			initializer 'groundworkcss-rails.setup',
				:after => 'less-rails.after.load_config_initializers',
				:group => :all do |app|
					if defined?(Less)
						app.config.less.paths << File.join(config.root, 'vendor', 'toolkit')
					end
				end

			initializer 'groundworkcss-rails.setup_helpers' do |app|
				app.config.to_prepare do
					ActionController::Base.send :include, BreadCrumbs
					ActionController::Base.send :helper, FlashBlockHelper
					ActionController::Base.send :helper, ModalHelper
					ActionController::Base.send :helper, GlyphHelper
					ActionController::Base.send :helper, SocialGlyphHelper
					#ActionController::Base.send :helper_method, :render_breadcrumbs
				end
			end
		end
	end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
groundworkcss-rails-0.2.12 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.11 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.10 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.9 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.8 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.7 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.6 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.5 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2.2 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.2 lib/groundworkcss/rails/engine.rb~
groundworkcss-rails-0.1 lib/groundworkcss/rails/engine.rb~