Sha256: 3d3c1675dc8f4d003bbb3d3c1f08557ab64e595b5abc02bd80345ab2fe4ed294
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
# frozen_string_literal: true module Blacklight class Engine < Rails::Engine engine_name "blacklight" require 'bootstrap-sass' require 'twitter-typeahead-rails' # BlacklightHelper is needed by all helpers, so we inject it # into action view base here. initializer 'blacklight.helpers' do |app| ActionView::Base.send :include, BlacklightHelper end config.autoload_paths += %W( #{config.root}/app/presenters #{config.root}/app/controllers/concerns #{config.root}/app/models/concerns ) # This makes our rake tasks visible. rake_tasks do Dir.chdir(File.expand_path(File.join(File.dirname(__FILE__), '..'))) do Dir.glob(File.join('railties', '*.rake')).each do |railtie| load railtie end end end initializer "blacklight.assets.precompile" do |app| app.config.assets.precompile += %w(favicon.ico) end Blacklight::Engine.config.sms_mappings = { 'Virgin' => 'vmobl.com', 'AT&T' => 'txt.att.net', 'Verizon' => 'vtext.com', 'Nextel' => 'messaging.nextel.com', 'Sprint' => 'messaging.sprintpcs.com', 'T Mobile' => 'tmomail.net', 'Alltel' => 'message.alltel.com', 'Cricket' => 'mms.mycricket.com' } config.bookmarks_http_method = :post end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blacklight-6.6.1 | lib/blacklight/engine.rb |
blacklight-6.6.0 | lib/blacklight/engine.rb |
blacklight-6.5.0 | lib/blacklight/engine.rb |