Sha256: 64c9ece802b2e5218a9da521c7a973d1be1a01c7dc98e7155d9061bbe947ab1c
Contents?: true
Size: 723 Bytes
Versions: 32
Compression:
Stored size: 723 Bytes
Contents
require "hydra-head" require "rails" require 'action_controller' require 'application_helper' module HydraHead class Engine < Rails::Engine # Config defaults config.mount_at = '/' # Load rake tasks rake_tasks do Dir.glob(File.join(File.expand_path('../', File.dirname(__FILE__)),'railties', '*.rake')).each do |railtie| load railtie end end # Check the gem config initializer "check config" do |app| # make sure mount_at ends with trailing slash config.mount_at += '/' unless config.mount_at.last == '/' end initializer "static assets" do |app| app.middleware.use ::ActionDispatch::Static, "#{root}/public" end end end
Version data entries
32 entries across 32 versions & 1 rubygems