diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pokeviewer/engine.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/pokeviewer/engine.rb b/lib/pokeviewer/engine.rb index 4368808..9733b43 100644 --- a/lib/pokeviewer/engine.rb +++ b/lib/pokeviewer/engine.rb | |||
@@ -1,8 +1,23 @@ | |||
1 | require "enumerize" | 1 | require "enumerize" |
2 | require "sequenced" | 2 | require "sequenced" |
3 | require "haml" | ||
4 | require "sass-rails" | ||
5 | require "normalize-rails" | ||
3 | 6 | ||
4 | module Pokeviewer | 7 | module Pokeviewer |
5 | class Engine < ::Rails::Engine | 8 | class Engine < ::Rails::Engine |
6 | isolate_namespace Pokeviewer | 9 | isolate_namespace Pokeviewer |
10 | |||
11 | initializer "pokeviewer.assets" do |app| | ||
12 | app.config.assets.paths << Rails.root.join("app", "assets", "fonts") | ||
13 | end | ||
14 | |||
15 | initializer "pokeviewer.assets" do |app| | ||
16 | app.config.assets.precompile += | ||
17 | %w(pokeviewer/icons/*.png | ||
18 | pokeviewer/sprites/**/*.png | ||
19 | pokeviewer/sprites/**/*.gif | ||
20 | pokeviewer/types/**.gif) | ||
21 | end | ||
7 | end | 22 | end |
8 | end | 23 | end |