Sha256: 9082ddcd93a29bd88a313d1a99cf0be42db5c34b28f2e8719df02d1879b2944c
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
require 'cheese' require 'rails' require 'action_controller' require 'application_helper' module Cheese class Engine < Rails::Engine # Config defaults config.widget_factory_name = "default factory name" config.mount_at = '/' # Load rake tasks rake_tasks do load File.join(File.dirname(__FILE__), 'rails/railties/tasks.rake') 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kealy_cheese-0.3.0 | lib/engine.rb |