Precompile all engine-specific assets

This commit is contained in:
Rohan Mitchell
2013-04-22 18:34:11 +10:00
parent 9e60e6269e
commit 8f6cc361cc
2 changed files with 8 additions and 0 deletions

View File

@@ -6,6 +6,10 @@ module EaterprisesFeature
initializer 'eaterprises_feature.sass', :after => :load_config_initializers do |app|
app.config.sass.load_paths += [self.root.join('app', 'assets', 'stylesheets', 'eaterprises_feature')]
end
initializer :assets do |app|
app.config.assets.precompile += ['eaterprises_feature/*']
end
end
end
end

View File

@@ -6,6 +6,10 @@ module LocalOrganicsFeature
initializer 'local_organics_feature.sass', :after => :load_config_initializers do |app|
app.config.sass.load_paths += [self.root.join('app', 'assets', 'stylesheets', 'local_organics_feature')]
end
initializer :assets do |app|
app.config.assets.precompile += ['local_organics_feature/*']
end
end
end
end