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