about summary refs log tree commit diff stats
path: root/lib/pokeviewer/engine.rb
blob: ca62bed5d7f8ce2515efcfb7c640705de52171e0 (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
24
25
26
27
28
29
require "enumerize"
require "sequenced"
require "haml"
require "sassc-rails"
require "normalize-rails"
require "jquery-rails"

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

    initializer "pokeviewer.assets" do |app|
      app.config.assets.paths << 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
          pokeviewer/boxes/*.png
          pokeviewer/ribbons/*.png
          pokeviewer/items/*.png
          pokeviewer/items/**/*.png
          pokeviewer/*.png)
    end
  end
end