Sha256: 5575b4f2004a97acf6265cf09230aae72add8fd62b40a5e13747d6e348ef7170
Contents?: true
Size: 694 Bytes
Versions: 6
Compression:
Stored size: 694 Bytes
Contents
require "hydra-head" require "rails" require 'action_controller' 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
6 entries across 6 versions & 1 rubygems