Sha256: a10db444637d4f7214b4e8ce3e6e5aedf27b878d8dc6ad3f45f69d6ddcdc3c5f
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
require 'pbw/version' require 'mongoid' require 'devise' module Pbw class Engine < ::Rails::Engine isolate_namespace Pbw engine_name 'pbw' config.mount_at = '/pbw' rake_tasks do load File.join(File.dirname(__FILE__), 'tasks/pbw_tasks.rake') end config.generators do |g| g.orm :mongoid g.template_engine :erb g.test_framework :rspec g.assets :false g.helper :false g.javascript_engine :coffee end config.email_from_address = 'superadmin@localhost' config.user_lifecycle_class = nil initializer "check config" do |app| config.mount_at += '/' unless config.mount_at.last == '/' end initializer "static assets" do |app| app.middleware.use ::ActionDispatch::Static, "#{root}/public" end def self.version Pbw::VERSION end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pbw-0.0.10 | lib/pbw/engine.rb |