lib/hydra/derivatives.rb
def create_derivatives
      if transformation_schemes.present?
        transformation_schemes.each do |transform_scheme|
          if transform_scheme.instance_of?(Proc)
            transform_scheme.call(self)
          else
            send(transform_scheme)
          end
        end
      else
        logger.warn "`create_derivatives' was called on an instance of #{self.class}, but no derivatives have been requested"
      end
    end
# Runs all of the transformations immediately.
# You may want to run this job in the background as it may take a long time.
Runs all of the transformations immediately.
You may want to run this job in the background as it may take a long time.
Runs all of the transformations immediately . You may want to run this job in the background as it may take a long time .
def create_derivatives
      if transformation_schemes.present?
        transformation_schemes.each do |transform_scheme|
          if transform_scheme.instance_of?(Proc)
            transform_scheme.call(self)
          else
            send(transform_scheme)
          end
        end
      else
        logger.warn "`create_derivatives' was called on an instance of #{self.class}, but no derivatives have been requested"
      end
    end
def create_derivatives if transformation_schemes . present? transformation_schemes . each do | transform_scheme | if transform_scheme . instance_of? ( Proc ) transform_scheme . call ( self ) else send ( transform_scheme ) end end else logger . warn "`create_derivatives' was called on an instance of #{self.class}, but no derivatives have been requested" end end
Runs all of the transformations immediately.
Runs all of the transformations immediately .