Correctly enable the asset pipeline
* Add the Rails 3.1+ Bundler.require statement to config/application.rb (properly enabling the :assets group) * Move handlebars_assets gem into the :assets group where it belongs. :) * Downgrade sass-rails to 3.1.4 since enabling the :assets group exposed a known bug in sass-rails ~> 3.1.5 [rails/sass-rails#78].
This commit is contained in:
parent
3e4bdc4260
commit
b24a4a7213
3 changed files with 13 additions and 8 deletions
4
Gemfile
4
Gemfile
|
|
@ -108,10 +108,10 @@ gem 'client_side_validations'
|
||||||
# assets
|
# assets
|
||||||
|
|
||||||
group :assets do
|
group :assets do
|
||||||
gem 'sass-rails'
|
gem 'sass-rails', '3.1.4'
|
||||||
|
gem 'handlebars_assets'
|
||||||
gem 'uglifier'
|
gem 'uglifier'
|
||||||
end
|
end
|
||||||
gem 'handlebars_assets'
|
|
||||||
|
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -413,10 +413,11 @@ GEM
|
||||||
archive-tar-minitar (>= 0.5.2)
|
archive-tar-minitar (>= 0.5.2)
|
||||||
rubyzip (0.9.6.1)
|
rubyzip (0.9.6.1)
|
||||||
sass (3.1.15)
|
sass (3.1.15)
|
||||||
sass-rails (3.1.6)
|
sass-rails (3.1.4)
|
||||||
actionpack (~> 3.1.0)
|
actionpack (~> 3.1.0)
|
||||||
railties (~> 3.1.0)
|
railties (~> 3.1.0)
|
||||||
sass (>= 3.1.10)
|
sass (>= 3.1.4)
|
||||||
|
sprockets (~> 2.0.0)
|
||||||
tilt (~> 1.3.2)
|
tilt (~> 1.3.2)
|
||||||
selenium-webdriver (2.16.0)
|
selenium-webdriver (2.16.0)
|
||||||
childprocess (>= 0.2.5)
|
childprocess (>= 0.2.5)
|
||||||
|
|
@ -558,7 +559,7 @@ DEPENDENCIES
|
||||||
ruby-debug19
|
ruby-debug19
|
||||||
ruby-oembed (~> 0.8.7)
|
ruby-oembed (~> 0.8.7)
|
||||||
sass
|
sass
|
||||||
sass-rails
|
sass-rails (= 3.1.4)
|
||||||
selenium-webdriver (~> 2.16.0)
|
selenium-webdriver (~> 2.16.0)
|
||||||
settingslogic!
|
settingslogic!
|
||||||
sqlite3
|
sqlite3
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,13 @@ if RUBY_VERSION.include? '1.9'
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'rails/all'
|
require 'rails/all'
|
||||||
# If you have a Gemfile, require the gems listed there, including any gems
|
|
||||||
# you've limited to :test, :development, or :production.
|
if defined?(Bundler)
|
||||||
Bundler.require(:default, Rails.env) if defined?(Bundler)
|
# If you precompile assets before deploying to production, use this line
|
||||||
|
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
||||||
|
# If you want your assets lazily compiled in production, use this line
|
||||||
|
# Bundler.require(:default, :assets, Rails.env)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
module Diaspora
|
module Diaspora
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue