Sha256: c6d2100a7445e7e2cee9f80e760b1aeac8de9425c3db6c45e4035abbf6ec9a21

Contents?: true

Size: 327 Bytes

Versions: 18

Compression:

Stored size: 327 Bytes

Contents

class FuelController < ApplicationController

  helper_method :s3_bucket


  def not_found
    raise ActionController::RoutingError.new('Not Found')
  end

  def s3_bucket
    return nil unless Fuel.configuration.aws_bucket.present?
    @s3_bucket ||= (
      AWS::S3.new.buckets[Fuel.configuration.aws_bucket]
    )
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fuel-0.4.10 app/controllers/fuel_controller.rb
fuel-0.4.9 app/controllers/fuel_controller.rb
fuel-0.4.8 app/controllers/fuel_controller.rb
fuel-0.4.7 app/controllers/fuel_controller.rb
fuel-0.4.6 app/controllers/fuel_controller.rb
fuel-0.4.5 app/controllers/fuel_controller.rb
fuel-0.4.4 app/controllers/fuel_controller.rb
fuel-0.4.3 app/controllers/fuel_controller.rb
fuel-0.4.2 app/controllers/fuel_controller.rb
fuel-0.4.1 app/controllers/fuel_controller.rb
fuel-0.3.34 app/controllers/fuel_controller.rb
fuel-0.3.33 app/controllers/fuel_controller.rb
fuel-0.3.32 app/controllers/fuel_controller.rb
fuel-0.3.31 app/controllers/fuel_controller.rb
fuel-0.3.30 app/controllers/fuel_controller.rb
fuel-0.3.29 app/controllers/fuel_controller.rb
fuel-0.3.28 app/controllers/fuel_controller.rb
fuel-0.3.27 app/controllers/fuel_controller.rb