about summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pokeviewer/engine.rb15
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 @@
1require "enumerize" 1require "enumerize"
2require "sequenced" 2require "sequenced"
3require "haml"
4require "sass-rails"
5require "normalize-rails"
3 6
4module Pokeviewer 7module 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
8end 23end