Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support rake asset:precompile in Rails 3.1+. #3

Merged
merged 1 commit into from

2 participants

kaukas Hoseong Hwang
kaukas

Note: not tested on 3.0.

I took the idea from https://github.com/Compass/compass-rails/blob/stable/lib/compass-rails/railties/3_1.rb#L90. However, there is also https://github.com/Compass/compass-rails/blob/stable/lib/compass-rails/railties/3_0.rb#L42 for Rails 3.0. So please be careful before merging back.

Hoseong Hwang thefron merged commit a760dd9 into from
Hoseong Hwang
Owner

Thank you @kaukas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 24, 2012
  1. kaukas

    Support rake asset:precompile in Rails 3.1+.

    kaukas authored
    Note: not tested on 3.0.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dust-rails/rails/engine.rb
2  lib/dust-rails/rails/engine.rb
View
@@ -3,7 +3,7 @@
module Dust
module Rails
class Engine < ::Rails::Engine
- initializer :register_dustjs do |app|
+ initializer :register_dustjs, :group => :all do |app|
app.assets.register_engine '.dust', DustTemplate
end
end
Something went wrong with that request. Please try again.