Sha256: d69546350540d00463ed0150b1ee63117e7b00b3c2ffbef1918b26109a1a5acc
Contents?: true
Size: 986 Bytes
Versions: 1
Compression:
Stored size: 986 Bytes
Contents
require 'pbw/version' 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 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.config(&block) yield Engine.config if block Engine.config end def self.version Pbw::VERSION end def self.user_lifecycle_class self.config.user_lifecycle_class || User::Lifecycle end end def self.setup yield Engine.config end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pbw-0.0.8 | lib/pbw/engine.rb |