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

Version Path
hydra-head-4.0.1 lib/hydra-head/engine.rb
hydra-head-4.0.0 lib/hydra-head/engine.rb
hydra-head-4.0.0.rc6 lib/hydra-head/engine.rb
hydra-head-4.0.0.rc5 lib/hydra-head/engine.rb
hydra-head-4.0.0.rc4 lib/hydra-head/engine.rb
hydra-head-4.0.0.rc3 lib/hydra-head/engine.rb
hydra-head-4.0.0.rc2 lib/hydra-head/engine.rb
hydra-head-3.3.0 lib/hydra-head/engine.rb
hydra-head-3.2.2 lib/hydra-head/engine.rb
hydra-head-3.2.1 lib/hydra-head/engine.rb
hydra-head-3.2.0 lib/hydra-head/engine.rb
hydra-head-3.2.0.pre3 lib/hydra-head/engine.rb
hydra-head-3.2.0.pre2 lib/hydra-head/engine.rb
hydra-head-3.2.0.pre1 lib/hydra-head/engine.rb
hydra-head-3.1.5 lib/hydra-head/engine.rb
hydra-head-3.1.4 lib/hydra-head/engine.rb
hydra-head-3.1.3 lib/hydra-head/engine.rb
hydra-head-3.1.2 lib/hydra-head/engine.rb
hydra-head-3.1.1 lib/hydra-head/engine.rb
hydra-head-3.1.0 lib/hydra-head/engine.rb