Sha256: 3f50c9aba0a074fb699d292bef5cbe78ec39ff6cc1996cad58018d5eda628c4d
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
require "caseadilla" require "rails" module Caseadilla class Engine < Rails::Engine @flavor = nil class << self attr_accessor :flavor end config.after_initialize do Rails.application.config.assets.paths << root.join("app", "assets", "fonts") end initializer "caseadilla.assets.precompile" do |app| app.config.assets.precompile += %w(caseadilla/*.svg caseadilla/*.eot caseadilla/*.woff caseadilla/*.ttf caseadilla/login.css caseadilla/caseadilla.css caseadilla/caseadilla.js caseadilla/html5shiv.js caseadilla/custom.css caseadilla/custom.js caseadilla/*.png) end rake_tasks do load "railties/tasks.rake" end end class RouteConstraint def matches?(request) return false if request.fullpath.include?("/caseadilla") return false if request.fullpath.include?("/admin") true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caseadilla-0.0.1 | lib/caseadilla/engine.rb |