lib/scrivito/configuration.rb in scrivito_sdk-1.5.5 vs lib/scrivito/configuration.rb in scrivito_sdk-1.6.0.rc1
- old
+ new
@@ -118,11 +118,12 @@
# cache
#
# @example Use Memcached as the second level cache (https://rubygems.org/gems/dalli)
#
# Scrivito.configure do |config|
- # config.second_level_cache = ActiveSupport::Cache::DalliStore.new("localhost", "server-downstairs.localnetwork:8229")
+ # config.second_level_cache = ActiveSupport::Cache::DalliStore.new("localhost",
+ # "server-downstairs.localnetwork:8229")
# end
#
def second_level_cache=(cache_store)
CmsDataCache.second_level_cache = cache_store
end
@@ -168,11 +169,13 @@
# The file can contain several CA certificates.
# Certifications will be used for endpoint peer verification of various scrivito services
# e.g. Content Read Service.
# @api public
def ca_file=(path)
- File.read(path) if path # Try to read the given file and fail if it doesn't exist or is not readable.
+ if path # Try to read the given file and fail if it doesn't exist or is not readable.
+ File.read(path)
+ end
@ca_file = path
end
def to_prepare
unless Rails.configuration.cache_classes
@@ -283,11 +286,11 @@
#
# When delivering binary Objs, the default image transformation will be applied if
# {Scrivito::BasicObj#apply_image_transformation? Obj#apply_image_transformation?} returns
# +true+.
#
- # If not changed the default image transformation is an empty transformation (an empty +Hash+).
- # Set it to +false+ to disabled the default image transformation completely.
+ # If not changed the default image transformation is an empty transformation (an empty
+ # +Hash+). Set it to +false+ to disabled the default image transformation completely.
#
# @param [Hash] value the {Scrivito::Binary#transform transformation definition}
#
# @see Scrivito::Binary#transform
# @see Scrivito::BasicObj#apply_image_transformation?