Sha256: 08ca1b1030a2f8426d11bd067942f819a8dab6d4ca1d20fbdf3b427bfacc8da2

Contents?: true

Size: 551 Bytes

Versions: 2

Compression:

Stored size: 551 Bytes

Contents

namespace :assets do
  # Prepend the assets:precompile_prepare task to assets:precompile.
  task :precompile => :precompile_prepare

  # This task will be called before assets:precompile to optimize the
  # compilation, i.e. to prevent any DB calls.
  task 'precompile_prepare' do
    # Without this assets:precompile will call itself again with this var set.
    # This basically speeds things up.
    ENV['RAILS_GROUPS'] = 'assets'

    # Devise uses this flag to prevent connecting to the db.
    ENV['RAILS_ASSETS_PRECOMPILE'] = 'true'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phoenix_core-0.2.1.beta lib/tasks/assets.rake
phoenix_core-0.2.0.beta lib/tasks/assets.rake