Module: Refinery::Images
- Includes:
- ActiveSupport::Configurable
- Defined in:
- images/lib/refinery/images.rb,
images/lib/refinery/images/engine.rb,
images/lib/refinery/images/dragonfly.rb,
images/lib/refinery/images/validators.rb,
images/lib/refinery/images/configuration.rb,
images/lib/refinery/images/validators/image_size_validator.rb
Defined Under Namespace
Modules: Dragonfly, Validators
Classes: Engine
Class Method Summary
(collapse)
Class Method Details
+ (Object) datastore_root_path
37
38
39
|
# File 'images/lib/refinery/images/configuration.rb', line 37
def datastore_root_path
config.datastore_root_path || (Rails.root.join('public', 'system', 'refinery', 'images').to_s if Rails.root)
end
|
+ (Object) factory_paths
20
21
22
|
# File 'images/lib/refinery/images.rb', line 20
def factory_paths
@factory_paths ||= [ root.join("spec/factories").to_s ]
end
|
+ (Object) root
16
17
18
|
# File 'images/lib/refinery/images.rb', line 16
def root
@root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end
|
+ (Object) s3_access_key_id
49
50
51
|
# File 'images/lib/refinery/images/configuration.rb', line 49
def s3_access_key_id
config.s3_access_key_id.nil? ? Refinery::Core.s3_access_key_id : config.s3_access_key_id
end
|
+ (Object) s3_backend
41
42
43
|
# File 'images/lib/refinery/images/configuration.rb', line 41
def s3_backend
config.s3_backend.nil? ? Refinery::Core.s3_backend : config.s3_backend
end
|
+ (Object) s3_bucket_name
45
46
47
|
# File 'images/lib/refinery/images/configuration.rb', line 45
def s3_bucket_name
config.s3_bucket_name.nil? ? Refinery::Core.s3_bucket_name : config.s3_bucket_name
end
|
+ (Object) s3_secret_access_key
53
54
55
|
# File 'images/lib/refinery/images/configuration.rb', line 53
def s3_secret_access_key
config.s3_secret_access_key.nil? ? Refinery::Core.s3_secret_access_key : config.s3_secret_access_key
end
|