Sha256: c6ce3f6692610a70bf97f6f5c62fbfcaee57c1f4a765fe0f15562ced6d26dfe3

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

Rails.application.config.assets.precompile << Proc.new do |path|
  unless path =~ /\.(css|js)\z/
    full_path = Rails.application.assets.resolve(path).to_path
    app_assets_path = "<%= experiment_path %>/assets/"
    if full_path.starts_with? app_assets_path
      true
    else
      false
    end
  else
    false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abtest-0.0.5 lib/abtest/tasks/templates/precompile_config.erb