Class: FuelController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/fuel_controller.rb

Instance Method Summary collapse

Instance Method Details

#not_foundObject

Raises:

  • (ActionController::RoutingError)


6
7
8
# File 'app/controllers/fuel_controller.rb', line 6

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

#s3_bucketObject



10
11
12
13
14
15
# File 'app/controllers/fuel_controller.rb', line 10

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