Permalink
Browse files

Remove Asset Pipeline config, add note

Doesn't appear that you can make something automatically
precompile from within in gem.
  • Loading branch information...
dce committed Nov 30, 2012
1 parent 6344758 commit 4fed0a95470c7bbfc4fd01f52b4d0328fea25642
Showing with 7 additions and 6 deletions.
  1. +7 −0 README.markdown
  2. +0 −6 lib/stat_board/engine.rb
View
@@ -35,6 +35,13 @@ In `config/initializers/stat_board.rb`:
StatBoard.username = "user"
StatBoard.password = "pass"
+## Issues
+
+ * Models can be specified as strings rather than constants
+ if you encounter loading order issues.
+ * If you're using the Asset Pipeline, you'll need to add
+ `stat_board/bootstrap.css` to your precompile paths.
+
## Contributing
Happily accepting contributions to improve StatBoard. To contribute, fork, add your thing, add some specs, and send a pleasantly worded pull request.
View
@@ -1,11 +1,5 @@
module StatBoard
class Engine < ::Rails::Engine
isolate_namespace StatBoard
-
- if Rails.version > "3.1"
- initializer "StatBoard precompile hook" do |app|
- app.config.assets.precompile += %w(stat_board/bootstrap.css)
- end
- end
end
end

0 comments on commit 4fed0a9

Please sign in to comment.