lib/seek/publishing/publishing_common.rb
def resolve_publish_params(param)
        if param.blank?
          [@asset].compact
        else
          assets = []
          param.keys.each do |asset_class|
            param[asset_class].keys.each do |id|
              assets << eval("#{asset_class}.find_by_id(#{id})")
            end
          end
          assets.compact.uniq
        end
      end
# returns an enumeration of assets for publishing based upon the parameters passed
returns an enumeration of assets for publishing based upon the parameters passed
returns an enumeration of assets for publishing based upon the parameters passed
def resolve_publish_params(param)
        if param.blank?
          [@asset].compact
        else
          assets = []
          param.keys.each do |asset_class|
            param[asset_class].keys.each do |id|
              assets << eval("#{asset_class}.find_by_id(#{id})")
            end
          end
          assets.compact.uniq
        end
      end
def resolve_publish_params ( param ) if param . blank? [ @asset ] . compact else assets = [ ] param . keys . each do | asset_class | param [ asset_class ] . keys . each do | id | assets << eval ( "#{asset_class}.find_by_id(#{id})" ) end end assets . compact . uniq end end
returns an enumeration of assets for publishing based upon the parameters passed
returns an enumeration of assets for publishing based upon the parameters passed
param