Class: S3Compliance
- Inherits:
-
Object
- Object
- S3Compliance
- Defined in:
- lib/generators/nimbleshop/app/templates/config/initializers/carrierwave.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ S3Compliance
constructor
A new instance of S3Compliance.
- #raise_error ⇒ Object
Constructor Details
#initialize(key) ⇒ S3Compliance
Returns a new instance of S3Compliance.
2 3 4 |
# File 'lib/generators/nimbleshop/app/templates/config/initializers/carrierwave.rb', line 2 def initialize(key) @key = key end |
Instance Method Details
#raise_error ⇒ Object
5 6 7 8 |
# File 'lib/generators/nimbleshop/app/templates/config/initializers/carrierwave.rb', line 5 def raise_error raise %Q{ This application's #{Rails.env} environment is configured to use amazon s3. However #{@key} to use is not specified at config/nimbleshop.yml . } end |