about summary refs log tree commit diff stats
path: root/lib/pokeviewer/engine.rb
blob: 9733b43293db4b111ac8edd67a05b0b38b9aba22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "enumerize"
require "sequenced"
require "haml"
require "sass-rails"
require "normalize-rails"

module Pokeviewer
  class Engine < ::Rails::Engine
    isolate_namespace Pokeviewer

    initializer "pokeviewer.assets" do |app|
      app.config.assets.paths << Rails.root.join("app", "assets", "fonts")
    end

    initializer "pokeviewer.assets" do |app|
      app.config.assets.precompile +=
        %w(pokeviewer/icons/*.png
          pokeviewer/sprites/**/*.png
          pokeviewer/sprites/**/*.gif
          pokeviewer/types/**.gif)
    end
  end
end