Sha256: 64893c5fb27bfa137a61786273d6f3a5ca5225770629f7f52aa22c749f38b9ca

Contents?: true

Size: 924 Bytes

Versions: 4

Compression:

Stored size: 924 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 caseadilla/*.css caseadilla/*.js)
    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

4 entries across 4 versions & 1 rubygems

Version Path
caseadilla-0.0.17 lib/caseadilla/engine.rb
caseadilla-0.0.16 lib/caseadilla/engine.rb
caseadilla-0.0.15 lib/caseadilla/engine.rb
caseadilla-0.0.14 lib/caseadilla/engine.rb