Sha256: cbda02a225b607a1da040a673f3ab75e31f228b1b038245cf2897e8ca26faabb

Contents?: true

Size: 857 Bytes

Versions: 14

Compression:

Stored size: 857 Bytes

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 :helper, FlashBlockHelper
					ActionController::Base.send :helper, GlyphHelper
					ActionController::Base.send :helper, SocialGlyphHelper
				end
			end
		end
	end
end

Version data entries

14 entries across 14 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.4 lib/groundworkcss/rails/engine.rb
groundworkcss-rails-0.2.3 lib/groundworkcss/rails/engine.rb
groundworkcss-rails-0.2.2 lib/groundworkcss/rails/engine.rb
groundworkcss-rails-0.2.1 lib/groundworkcss/rails/engine.rb
groundworkcss-rails-0.2 lib/groundworkcss/rails/engine.rb
groundworkcss-rails-0.1 lib/groundworkcss/rails/engine.rb